diff options
Diffstat (limited to 'drivers/usb/host/isp116x-hcd.c')
-rw-r--r-- | drivers/usb/host/isp116x-hcd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c index c2919dbc3f54..35b3507ff401 100644 --- a/drivers/usb/host/isp116x-hcd.c +++ b/drivers/usb/host/isp116x-hcd.c | |||
@@ -455,11 +455,10 @@ static void postproc_atl_queue(struct isp116x *isp116x) | |||
455 | done: | 455 | done: |
456 | if (status != -EINPROGRESS) { | 456 | if (status != -EINPROGRESS) { |
457 | spin_lock(&urb->lock); | 457 | spin_lock(&urb->lock); |
458 | if (urb->status == -EINPROGRESS) | 458 | urb->status = status; |
459 | urb->status = status; | ||
460 | spin_unlock(&urb->lock); | 459 | spin_unlock(&urb->lock); |
461 | } | 460 | } |
462 | if (urb->status != -EINPROGRESS) | 461 | if (urb->status != -EINPROGRESS || urb->unlinked) |
463 | finish_request(isp116x, ep, urb); | 462 | finish_request(isp116x, ep, urb); |
464 | } | 463 | } |
465 | } | 464 | } |