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:
fca83b7
)
USB: fix usb_get_configuration bug
author
wlf
<wulf@rock-chips.com>
Tue, 19 Mar 2013 12:51:14 +0000
(20:51 +0800)
committer
wlf
<wulf@rock-chips.com>
Tue, 19 Mar 2013 12:51:14 +0000
(20:51 +0800)
drivers/usb/core/config.c
patch
|
blob
|
history
diff --git
a/drivers/usb/core/config.c
b/drivers/usb/core/config.c
index 26678cadfb215340e35a9b56f5fe23954a13cdd9..86167b585f84b418f1766eb2dc6340a9de43dda8 100644
(file)
--- a/
drivers/usb/core/config.c
+++ b/
drivers/usb/core/config.c
@@
-704,7
+704,7
@@
int usb_get_configuration(struct usb_device *dev)
"descriptor/%s: %d\n", cfgno, "start", result);
dev_err(ddev, "chopping to %d config(s)\n", cfgno);
dev->descriptor.bNumConfigurations = cfgno;
-
break
;
+
goto err
;
} else if (result < 4) {
dev_err(ddev, "config index %d descriptor too short "
"(expected %i, got %i)\n", cfgno,