ixp4xx: remove linux 3.10 support
[openwrt.git] / target / linux / brcm2708 / patches-3.10 / 0044-dwc_otg-fix-bug-in-dwc_otg_hcd.c-resulting-in-silent.patch
1 From 9ffc237e5d245d9eda21b10b82dab448ec920620 Mon Sep 17 00:00:00 2001
2 From: P33M <P33M@github.com>
3 Date: Wed, 9 Jan 2013 16:12:04 +0000
4 Subject: [PATCH 044/196] dwc_otg: fix bug in dwc_otg_hcd.c resulting in silent
5  kernel          memory corruption, escalating to OOPS under high USB load.
6
7 ---
8  drivers/usb/host/dwc_otg/dwc_otg_hcd.c       | 2 --
9  drivers/usb/host/dwc_otg/dwc_otg_hcd_queue.c | 1 +
10  2 files changed, 1 insertion(+), 2 deletions(-)
11
12 diff --git a/drivers/usb/host/dwc_otg/dwc_otg_hcd.c b/drivers/usb/host/dwc_otg/dwc_otg_hcd.c
13 index 2b7945a..d5c94f4 100644
14 --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd.c
15 +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd.c
16 @@ -500,8 +500,6 @@ int dwc_otg_hcd_urb_enqueue(dwc_otg_hcd_t * hcd,
17                 DWC_ERROR("DWC OTG HCD URB Enqueue failed adding QTD. "
18                           "Error status %d\n", retval);
19                 dwc_otg_hcd_qtd_free(qtd);
20 -       } else {
21 -               qtd->qh = *ep_handle;
22         }
23         intr_mask.d32 = DWC_READ_REG32(&hcd->core_if->core_global_regs->gintmsk);
24         if (!intr_mask.b.sofintr && retval == 0) {
25 diff --git a/drivers/usb/host/dwc_otg/dwc_otg_hcd_queue.c b/drivers/usb/host/dwc_otg/dwc_otg_hcd_queue.c
26 index e6b2a7b..b337e1b 100644
27 --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd_queue.c
28 +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd_queue.c
29 @@ -946,6 +946,7 @@ int dwc_otg_hcd_qtd_add(dwc_otg_qtd_t * qtd,
30         if (retval == 0) {
31                 DWC_CIRCLEQ_INSERT_TAIL(&((*qh)->qtd_list), qtd,
32                                         qtd_list_entry);
33 +               qtd->qh = *qh;
34         }
35         DWC_SPINUNLOCK_IRQRESTORE(hcd->lock, flags);
36  
37 -- 
38 1.9.1
39