mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
Fix for DWC OTG HCD URB Dequeue has NULL URB panic. Thanks Naren
This commit is contained in:
@@ -761,10 +761,12 @@ static int urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
|
||||
dump_urb_info(urb, "urb_dequeue");
|
||||
}
|
||||
#endif
|
||||
dwc_otg_hcd_urb_dequeue(dwc_otg_hcd, (dwc_otg_hcd_urb_t *)urb->hcpriv);
|
||||
if(urb->hcpriv != NULL) {
|
||||
dwc_otg_hcd_urb_dequeue(dwc_otg_hcd, (dwc_otg_hcd_urb_t *)urb->hcpriv);
|
||||
|
||||
dwc_free(urb->hcpriv);
|
||||
urb->hcpriv = NULL;
|
||||
urb->hcpriv = NULL;
|
||||
dwc_free(urb->hcpriv);
|
||||
}
|
||||
|
||||
/* Higher layer software sets URB status. */
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30))
|
||||
|
||||
Reference in New Issue
Block a user