projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e092d1
)
USB: musb_gadget: fix kernel oops in txstate()
author
Sergei Shtylyov
<
[email protected]
>
Wed, 16 Dec 2009 17:38:31 +0000
(20:38 +0300)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 23 Dec 2009 19:34:12 +0000
(11:34 -0800)
Commit
7723de7e19b744144975a09c81777ec0f14ac5b3
(USB: musb_gadget: remove
pointless loop) included uncalled for (and incorrect) optimization that
might cause a kernel oops in txstate() -- undo it.
Signed-off-by: Sergei Shtylyov <
[email protected]
>
Signed-off-by: Felipe Balbi <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/musb/musb_gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/musb/musb_gadget.c
b/drivers/usb/musb/musb_gadget.c
index c49b9ba025ab2a75daa6794c4eedc97bcd8e87b1..4dea1460925209e3281492b9592a1ea67e37317b 100644
(file)
--- a/
drivers/usb/musb/musb_gadget.c
+++ b/
drivers/usb/musb/musb_gadget.c
@@
-515,12
+515,12
@@
void musb_g_tx(struct musb *musb, u8 epnum)
if (csr & MUSB_TXCSR_FIFONOTEMPTY)
return;
- if (!musb_ep->desc) {
+ request = musb_ep->desc ? next_request(musb_ep) : NULL;
+ if (!request) {
DBG(4, "%s idle now\n",
musb_ep->end_point.name);
return;
- } else
- request = next_request(musb_ep);
+ }
}
txstate(musb, to_musb_request(request));