projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b002ff6
)
usb/hcd: don't return 0 on error in usb_add_hcd()
author
Sebastian Andrzej Siewior
<bigeasy@linutronix.de>
Thu, 14 Apr 2011 09:22:32 +0000
(11:22 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Sat, 30 Apr 2011 00:24:35 +0000
(17:24 -0700)
If USB type detections fails, we run into default and return 0.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/core/hcd.c
b/drivers/usb/core/hcd.c
index
77a7fae
..
10936ba
100644
(file)
--- a/
drivers/usb/core/hcd.c
+++ b/
drivers/usb/core/hcd.c
@@
-2407,6
+2407,7
@@
int usb_add_hcd(struct usb_hcd *hcd,
rhdev->speed = USB_SPEED_SUPER;
break;
default:
+ retval = -EINVAL;
goto err_set_rh_speed;
}