From: yangkai Date: Fri, 24 Jun 2011 10:09:34 +0000 (+0800) Subject: fix kernel panic when not standard usb keyboard connect X-Git-Tag: firefly_0821_release~10171^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f8b83dd6e0b5636d10c6ca57e58977082b0badec;p=firefly-linux-kernel-4.4.55.git fix kernel panic when not standard usb keyboard connect --- diff --git a/drivers/usb/dwc_otg/dwc_otg_hcd_intr.c b/drivers/usb/dwc_otg/dwc_otg_hcd_intr.c index 5d68cf2d6c0b..a4c23fa9470b 100755 --- a/drivers/usb/dwc_otg/dwc_otg_hcd_intr.c +++ b/drivers/usb/dwc_otg/dwc_otg_hcd_intr.c @@ -615,7 +615,7 @@ static int update_urb_state_xfer_comp(dwc_hc_t *_hc, DWC_OTG_HC_XFER_COMPLETE, &short_read); - if (short_read || (_urb->actual_length == _urb->transfer_buffer_length)) { + if (short_read || (_urb->actual_length >= _urb->transfer_buffer_length)) { xfer_done = 1; if (short_read && (_urb->transfer_flags & URB_SHORT_NOT_OK)) { _urb->status = -EREMOTEIO;