projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: renesas_usbhs: fix error return code of usbhsf_pkt_handler()
[linux-2.6-block.git]
/
drivers
/
usb
/
renesas_usbhs
/
fifo.c
diff --git
a/drivers/usb/renesas_usbhs/fifo.c
b/drivers/usb/renesas_usbhs/fifo.c
index e6fa13701808247542ea6905a0659b194f466fd8..b5e7991dc7d9e537fac334464afb4a518577f522 100644
(file)
--- a/
drivers/usb/renesas_usbhs/fifo.c
+++ b/
drivers/usb/renesas_usbhs/fifo.c
@@
-160,8
+160,10
@@
static int usbhsf_pkt_handler(struct usbhs_pipe *pipe, int type)
usbhs_lock(priv, flags);
pkt = __usbhsf_pkt_get(pipe);
- if (!pkt)
+ if (!pkt) {
+ ret = -EINVAL;
goto __usbhs_pkt_handler_end;
+ }
switch (type) {
case USBHSF_PKT_PREPARE: