aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorZoltan Herpai <wigyori@uid0.hu>2016-12-18 12:36:52 +0100
committerGitHub <noreply@github.com>2016-12-18 12:36:52 +0100
commitc170d84bbe08e0f049c99d3f376aae170a36458e (patch)
tree7b033448f83d12d98baf45a3d9a673e87e16480c /target
parente5a8ed3effdb2ab7bc948064ad715b7b444ac207 (diff)
parent6ee59728b9c293d76146d9021639b72147065aad (diff)
downloadupstream-c170d84bbe08e0f049c99d3f376aae170a36458e.tar.gz
upstream-c170d84bbe08e0f049c99d3f376aae170a36458e.tar.bz2
upstream-c170d84bbe08e0f049c99d3f376aae170a36458e.zip
Merge pull request #264 from wigyori/cc-dm9601
CC: brcm2708: Fix Kernel Panic: DM9601 Fast Ethernet Adapter
Diffstat (limited to 'target')
-rw-r--r--target/linux/brcm2708/patches-3.18/0700-dm9601-kernel-panic.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-3.18/0700-dm9601-kernel-panic.patch b/target/linux/brcm2708/patches-3.18/0700-dm9601-kernel-panic.patch
new file mode 100644
index 0000000000..30a979dd1f
--- /dev/null
+++ b/target/linux/brcm2708/patches-3.18/0700-dm9601-kernel-panic.patch
@@ -0,0 +1,14 @@
+--- a/drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
++++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
+@@ -738,6 +738,11 @@ static int update_urb_state_xfer_comp(dw
+ DWC_OTG_HC_XFER_COMPLETE,
+ &short_read);
+
++ if (urb->actual_length + xfer_length > urb->length) {
++ /* dev_warn(hsotg->dev, "%s(): trimming xfer length\n", __func__);*/
++ xfer_length = urb->length - urb->actual_length;
++ }
++
+ /* non DWORD-aligned buffer case handling. */
+ if (hc->align_buff && xfer_length && hc->ep_is_in) {
+ dwc_memcpy(urb->buf + urb->actual_length, hc->qh->dw_align_buf,