Commit 37332ee0 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Felipe Balbi

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: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 2bcb7514
......@@ -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;
}
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment