Skip to content

Commit

Permalink
usb: renesas_usbhs: add lost error value when enqueue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Felipe Balbi committed Dec 12, 2011
1 parent 2bcb751 commit 37332ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/usb/renesas_usbhs/mod_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

/*
Expand Down

0 comments on commit 37332ee

Please sign in to comment.