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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8db324ec43
commit
5936ac7f93
@@ -267,6 +267,8 @@ static void wusbhc_devconnect_acked_work(struct work_struct *work)
|
||||
mutex_lock(&wusbhc->mutex);
|
||||
wusbhc_devconnect_acked(wusbhc, wusb_dev);
|
||||
mutex_unlock(&wusbhc->mutex);
|
||||
|
||||
wusb_dev_put(wusb_dev);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user