Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -760,9 +760,11 @@ 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;
		}
	}

	/*
	 * attach endpoint if needed