From: Andrew Morton Date: Tue, 15 Aug 2006 06:11:09 +0000 (-0700) Subject: USB: rtl8150_disconnect() needs tasklet_kill() X-Git-Tag: v2.6.18-rc6~5^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=eff674a514bd3f59e0cae9b843e0665b576a5ed8;p=linux-2.6-omap-h63xx.git USB: rtl8150_disconnect() needs tasklet_kill() We need to wait until any currently-running handler has completed. Fixes an unplug-time oops reported by "Miles Lane" . Cc: "Petko Manolov" Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/net/rtl8150.c b/drivers/usb/net/rtl8150.c index bd09232ce13..a72685b9606 100644 --- a/drivers/usb/net/rtl8150.c +++ b/drivers/usb/net/rtl8150.c @@ -972,6 +972,7 @@ static void rtl8150_disconnect(struct usb_interface *intf) if (dev) { set_bit(RTL8150_UNPLUG, &dev->flags); tasklet_disable(&dev->tl); + tasklet_kill(&dev->tl); unregister_netdev(dev->netdev); unlink_all_urbs(dev); free_all_urbs(dev);