usb: dwc_otg: fix BUG: scheduling while atomic
authorlyz <lyz@rock-chips.com>
Tue, 24 Jun 2014 01:02:18 +0000 (09:02 +0800)
committerlyz <lyz@rock-chips.com>
Tue, 24 Jun 2014 01:02:18 +0000 (09:02 +0800)
drivers/usb/dwc_otg_310/dwc_otg_hcd.c

index e8b0ef56913fe79b5a87912e229d7aaa11e53dd7..825c14d283732840544cb7c6195a5feb0c20adbc 100755 (executable)
@@ -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. "