From: Shubhrajyoti D Date: Tue, 7 Aug 2012 14:26:31 +0000 (+0530) Subject: usb: musb: Prevent the masking of the return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f69dfa1f01e20387ada601f2bf772061d79e6a8f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 4bc2ad8352a7..dd24f966af10 100644 --- a/drivers/usb/musb/musb_core.c +++ b/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);