brcm2708: update 3.10 patches with raspberrypi/rpi-3.10.y of 27 Apr. 2014
[openwrt/svn-archive/archive.git] / target / linux / brcm2708 / patches-3.10 / 0086-dwc_otg-fix-potential-sleep-while-atomic-during-urb-.patch
1 From ce5fb2face9a3974693b0f08ce226d7f0406541a Mon Sep 17 00:00:00 2001
2 From: P33M <P33M@github.com>
3 Date: Fri, 2 Aug 2013 10:04:18 +0100
4 Subject: [PATCH 086/196] dwc_otg: fix potential sleep while atomic during urb
5 enqueue
6
7 Fixes a regression introduced with eb1b482a. Kmalloc called from
8 dwc_otg_hcd_qtd_add / dwc_otg_hcd_qtd_create did not always have
9 the GPF_ATOMIC flag set. Force this flag when inside the larger
10 critical section.
11 ---
12 drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c | 3 +--
13 1 file changed, 1 insertion(+), 2 deletions(-)
14
15 diff --git a/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c b/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c
16 index ad03ff1..80690f9 100644
17 --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c
18 +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c
19 @@ -781,8 +781,7 @@ static int dwc_otg_urb_enqueue(struct usb_hcd *hcd,
20 {
21 retval = dwc_otg_hcd_urb_enqueue(dwc_otg_hcd, dwc_otg_urb,
22 /*(dwc_otg_qh_t **)*/
23 - ref_ep_hcpriv,
24 - mem_flags == GFP_ATOMIC ? 1 : 0);
25 + ref_ep_hcpriv, 1);
26 if (0 == retval) {
27 if (alloc_bandwidth) {
28 allocate_bus_bandwidth(hcd,
29 --
30 1.9.1
31