Pārlūkot izejas kodu

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>
Kuninori Morimoto 13 gadi atpakaļ
vecāks
revīzija
37332ee0df
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      drivers/usb/renesas_usbhs/mod_host.c

+ 3 - 1
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;
+		}
 	}
 
 	/*