brcm2708: update against latest rpi-3.10.y branch
[openwrt/svn-archive/archive.git] / target / linux / brcm2708 / patches-3.10 / 0044-dwc_otg-fix-bug-in-dwc_otg_hcd.c-resulting-in-silent.patch
1 From 17b1eb8e7fdbca81bc6d74c003b02ca3b08f1fa4 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/174] 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 --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd.c
13 +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd.c
14 @@ -500,8 +500,6 @@ int dwc_otg_hcd_urb_enqueue(dwc_otg_hcd_
15 DWC_ERROR("DWC OTG HCD URB Enqueue failed adding QTD. "
16 "Error status %d\n", retval);
17 dwc_otg_hcd_qtd_free(qtd);
18 - } else {
19 - qtd->qh = *ep_handle;
20 }
21 intr_mask.d32 = DWC_READ_REG32(&hcd->core_if->core_global_regs->gintmsk);
22 if (!intr_mask.b.sofintr && retval == 0) {
23 --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd_queue.c
24 +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd_queue.c
25 @@ -946,6 +946,7 @@ int dwc_otg_hcd_qtd_add(dwc_otg_qtd_t *
26 if (retval == 0) {
27 DWC_CIRCLEQ_INSERT_TAIL(&((*qh)->qtd_list), qtd,
28 qtd_list_entry);
29 + qtd->qh = *qh;
30 }
31 DWC_SPINUNLOCK_IRQRESTORE(hcd->lock, flags);
32