summaryrefslogtreecommitdiff
path: root/drivers/usb/renesas_usbhs/mod_host.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-12-09 06:25:37 +0400
committerFelipe Balbi <balbi@ti.com>2011-12-12 14:26:35 +0400
commit37332ee0dfb017aea566047be945d6fd3531c713 (patch)
tree6a7f701429a3684e973873bedc4e0e594018a06e /drivers/usb/renesas_usbhs/mod_host.c
parent2bcb75144027fcee878319de87a967a4dec49403 (diff)
downloadlinux-37332ee0dfb017aea566047be945d6fd3531c713.tar.xz
usb: renesas_usbhs: add lost error value when enqueue
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>
Diffstat (limited to 'drivers/usb/renesas_usbhs/mod_host.c')
-rw-r--r--drivers/usb/renesas_usbhs/mod_host.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_host.c b/drivers/usb/renesas_usbhs/mod_host.c
index 182bdb8e45ec..c39404783271 100644
--- 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;
+ }
}
/*