From cbe2eabbb69d175d7115ddba918e39c71a1e6f22 Mon Sep 17 00:00:00 2001 From: lyz Date: Tue, 24 Jun 2014 09:02:18 +0800 Subject: [PATCH] usb: dwc_otg: fix BUG: scheduling while atomic --- drivers/usb/dwc_otg_310/dwc_otg_hcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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. " -- 2.34.1