diff options
-rw-r--r-- | drivers/usb/misc/usbtest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index ccc5e8238bd8..b42ae6bfb12b 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c | |||
@@ -802,7 +802,9 @@ error: | |||
802 | 802 | ||
803 | if (u == urb || !u->dev) | 803 | if (u == urb || !u->dev) |
804 | continue; | 804 | continue; |
805 | spin_unlock(&ctx->lock); | ||
805 | status = usb_unlink_urb (u); | 806 | status = usb_unlink_urb (u); |
807 | spin_lock(&ctx->lock); | ||
806 | switch (status) { | 808 | switch (status) { |
807 | case -EINPROGRESS: | 809 | case -EINPROGRESS: |
808 | case -EBUSY: | 810 | case -EBUSY: |