projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
660fa88
)
usb: musb: Prevent the masking of the return value
author
Shubhrajyoti D
<shubhrajyoti@ti.com>
Tue, 7 Aug 2012 14:26:31 +0000
(19:56 +0530)
committer
Felipe Balbi
<balbi@ti.com>
Thu, 9 Aug 2012 11:38:51 +0000
(14:38 +0300)
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>
drivers/usb/musb/musb_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/musb/musb_core.c
b/drivers/usb/musb/musb_core.c
index 4bc2ad8352a73e0e9b5844c344cd4f16ddc402cb..dd24f966af10f3ded68888f9cbc75c7c2747cdbd 100644
(file)
--- 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);