From: Oliver Neukum Date: Mon, 11 Jun 2007 12:54:02 +0000 (+0200) Subject: USB: usb-skeleton: use anchors in disconnect handling X-Git-Tag: v2.6.23-rc1~1083^2~40 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e73c7247b8e10a74cbf6b7430585e02c7cc05444;p=linux-2.6-omap-h63xx.git USB: usb-skeleton: use anchors in disconnect handling use anchors in disconnect handling Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/usb-skeleton.c b/drivers/usb/usb-skeleton.c index a31fcfd5eda..1b1e669dff9 100644 --- a/drivers/usb/usb-skeleton.c +++ b/drivers/usb/usb-skeleton.c @@ -420,6 +420,8 @@ static void skel_disconnect(struct usb_interface *interface) dev->interface = NULL; mutex_unlock(&dev->io_mutex); + usb_kill_anchored_urbs(&dev->submitted); + /* decrement our usage count */ kref_put(&dev->kref, skel_delete);