From: lyz Date: Tue, 24 Jun 2014 01:02:18 +0000 (+0800) Subject: usb: dwc_otg: fix BUG: scheduling while atomic X-Git-Tag: firefly_0821_release~5059 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cbe2eabbb69d175d7115ddba918e39c71a1e6f22;p=firefly-linux-kernel-4.4.55.git usb: dwc_otg: fix BUG: scheduling while atomic --- diff --git a/drivers/usb/dwc_otg_310/dwc_otg_hcd.c b/drivers/usb/dwc_otg_310/dwc_otg_hcd.c index e8b0ef56913f..825c14d28373 100755 --- a/drivers/usb/dwc_otg_310/dwc_otg_hcd.c +++ b/drivers/usb/dwc_otg_310/dwc_otg_hcd.c @@ -515,8 +515,7 @@ int dwc_otg_hcd_urb_enqueue(dwc_otg_hcd_t *hcd, } DWC_SPINLOCK_IRQSAVE(hcd->lock, &flags); retval = - dwc_otg_hcd_qtd_add(qtd, hcd, (dwc_otg_qh_t **) ep_handle, - atomic_alloc); + dwc_otg_hcd_qtd_add(qtd, hcd, (dwc_otg_qh_t **) ep_handle, 1); if (retval < 0) { DWC_ERROR("DWC OTG HCD URB Enqueue failed adding QTD. "