From f8b83dd6e0b5636d10c6ca57e58977082b0badec Mon Sep 17 00:00:00 2001 From: yangkai Date: Fri, 24 Jun 2011 18:09:34 +0800 Subject: [PATCH] fix kernel panic when not standard usb keyboard connect --- drivers/usb/dwc_otg/dwc_otg_hcd_intr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1