From: Kuninori Morimoto Date: Fri, 9 Dec 2011 02:25:37 +0000 (-0800) Subject: usb: renesas_usbhs: add lost error value when enqueue X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=37332ee0dfb017aea566047be945d6fd3531c713;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Felipe Balbi --- 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; + } } /*