Explorar o código

usb: musb: Prevent the masking of the return value

Currently the errors returned by fifo_setup get masked
by EINVAL, propagate the same to the caller.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Shubhrajyoti D %!s(int64=13) %!d(string=hai) anos
pai
achega
f69dfa1f01
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/usb/musb/musb_core.c

+ 1 - 1
drivers/usb/musb/musb_core.c

@@ -1295,7 +1295,7 @@ done:
 		if (offset < 0) {
 			pr_debug("%s: mem overrun, ep %d\n",
 					musb_driver_name, epn);
-			return -EINVAL;
+			return offset;
 		}
 		epn++;
 		musb->nr_endpoints = max(epn, musb->nr_endpoints);