projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d25fee0
)
fix kernel panic when not standard usb keyboard connect
author
yangkai
<yangkai@ubuntu-fs>
Fri, 24 Jun 2011 10:09:34 +0000
(18:09 +0800)
committer
yangkai
<yangkai@ubuntu-fs>
Fri, 24 Jun 2011 10:09:34 +0000
(18:09 +0800)
drivers/usb/dwc_otg/dwc_otg_hcd_intr.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc_otg/dwc_otg_hcd_intr.c
b/drivers/usb/dwc_otg/dwc_otg_hcd_intr.c
index 5d68cf2d6c0b29e0aae9d5cc9de1e75bf7b2927d..a4c23fa9470bf03e68a5e69beaceefb98d5e9dfb 100755
(executable)
--- 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;