2014-09-27 19:10:51 +00:00
|
|
|
From ce5fb2face9a3974693b0f08ce226d7f0406541a Mon Sep 17 00:00:00 2001
|
2014-02-28 20:30:08 +00:00
|
|
|
From: P33M <P33M@github.com>
|
|
|
|
Date: Fri, 2 Aug 2013 10:04:18 +0100
|
2014-09-27 19:10:51 +00:00
|
|
|
Subject: [PATCH 086/196] dwc_otg: fix potential sleep while atomic during urb
|
2014-02-28 20:30:08 +00:00
|
|
|
enqueue
|
|
|
|
|
|
|
|
Fixes a regression introduced with eb1b482a. Kmalloc called from
|
|
|
|
dwc_otg_hcd_qtd_add / dwc_otg_hcd_qtd_create did not always have
|
|
|
|
the GPF_ATOMIC flag set. Force this flag when inside the larger
|
|
|
|
critical section.
|
|
|
|
---
|
|
|
|
drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c | 3 +--
|
|
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
|
2014-09-27 19:10:51 +00:00
|
|
|
diff --git a/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c b/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c
|
|
|
|
index ad03ff1..80690f9 100644
|
2014-02-28 20:30:08 +00:00
|
|
|
--- a/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c
|
|
|
|
+++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c
|
2014-09-27 19:10:51 +00:00
|
|
|
@@ -781,8 +781,7 @@ static int dwc_otg_urb_enqueue(struct usb_hcd *hcd,
|
2014-02-28 20:30:08 +00:00
|
|
|
{
|
|
|
|
retval = dwc_otg_hcd_urb_enqueue(dwc_otg_hcd, dwc_otg_urb,
|
|
|
|
/*(dwc_otg_qh_t **)*/
|
|
|
|
- ref_ep_hcpriv,
|
|
|
|
- mem_flags == GFP_ATOMIC ? 1 : 0);
|
|
|
|
+ ref_ep_hcpriv, 1);
|
|
|
|
if (0 == retval) {
|
|
|
|
if (alloc_bandwidth) {
|
|
|
|
allocate_bus_bandwidth(hcd,
|
2014-09-27 19:10:51 +00:00
|
|
|
--
|
|
|
|
1.9.1
|
|
|
|
|