mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
usb: dwc_otg: fix a spin-lock error, here should not goto return
without unlock hck->lock
This commit is contained in:
@@ -1136,13 +1136,13 @@ static int urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
|
||||
}
|
||||
#endif
|
||||
|
||||
DWC_SPINLOCK_IRQSAVE(dwc_otg_hcd->lock, &flags);
|
||||
|
||||
if (((uint32_t) urb & 0xf0000000) == 0) {
|
||||
DWC_PRINTF("%s error: urb is %p!!!\n", __func__, urb);
|
||||
goto out1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
DWC_SPINLOCK_IRQSAVE(dwc_otg_hcd->lock, &flags);
|
||||
|
||||
if (((uint32_t) urb->hcpriv & 0xf0000000) == 0) {
|
||||
DWC_PRINTF("%s error: urb->hcpriv %p urb %p, count %d!!!\n",
|
||||
__func__, urb->hcpriv, urb,
|
||||
@@ -1172,7 +1172,7 @@ out2:
|
||||
DWC_PRINTF("Called usb_hcd_giveback_urb()\n");
|
||||
DWC_PRINTF(" urb->status = %d\n", urb->status);
|
||||
}
|
||||
out1:
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user