0700-dm9601-kernel-panic.patch 581 B

1234567891011121314
  1. --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
  2. +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
  3. @@ -738,6 +738,11 @@ static int update_urb_state_xfer_comp(dw
  4. DWC_OTG_HC_XFER_COMPLETE,
  5. &short_read);
  6. + if (urb->actual_length + xfer_length > urb->length) {
  7. + /* dev_warn(hsotg->dev, "%s(): trimming xfer length\n", __func__);*/
  8. + xfer_length = urb->length - urb->actual_length;
  9. + }
  10. +
  11. /* non DWORD-aligned buffer case handling. */
  12. if (hc->align_buff && xfer_length && hc->ep_is_in) {
  13. dwc_memcpy(urb->buf + urb->actual_length, hc->qh->dw_align_buf,