WUSB: fix oops when completing URBs for disconnected devices
commit5936ac7f93965931c508e1928d142076998ce65d
authorDavid Vrabel <david.vrabel@csr.com>
Wed, 8 Apr 2009 17:36:32 +0000 (8 17:36 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Apr 2009 17:50:28 +0000 (17 10:50 -0700)
treeab6eafd9032dd6bf4b9b35d1c799745de2487000
parent8db324ec4322a15cf8819b8a7f0eff5aa98b2ff6
WUSB: fix oops when completing URBs for disconnected devices

Fix an oops in wusbhc_giveback_urb() if the wusb device had disconnected
while an urb was in progress. Also release the ref count obtained here.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/wusbcore/devconnect.c
drivers/usb/wusbcore/wusbhc.c