mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
Merge pull request #264 from wigyori/cc-dm9601
CC: brcm2708: Fix Kernel Panic: DM9601 Fast Ethernet Adapter
This commit is contained in:
commit
c170d84bbe
@ -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,
|
||||
Loading…
x
Reference in New Issue
Block a user