projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bcb751
)
usb: renesas_usbhs: add lost error value when enqueue
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Fri, 9 Dec 2011 02:25:37 +0000
(18:25 -0800)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 12 Dec 2011 10:26:35 +0000
(12:26 +0200)
usbhsh_urb_enqueue() didn't have error value when
usbhsh_device_attach() failed
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/mod_host.c
patch
|
blob
|
history
diff --git
a/drivers/usb/renesas_usbhs/mod_host.c
b/drivers/usb/renesas_usbhs/mod_host.c
index 182bdb8e45ecc06920a0a86430470096824699f1..c39404783271bbaae89b526c5ee2c4752eea8e4e 100644
(file)
--- a/
drivers/usb/renesas_usbhs/mod_host.c
+++ b/
drivers/usb/renesas_usbhs/mod_host.c
@@
-760,8
+760,10
@@
static int usbhsh_urb_enqueue(struct usb_hcd *hcd,
*/
if (!usbhsh_usbv_to_udev(usbv)) {
new_udev = usbhsh_device_attach(hpriv, urb);
- if (!new_udev)
+ if (!new_udev) {
+ ret = -EIO;
goto usbhsh_urb_enqueue_error_not_linked;
+ }
}
/*