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:
6ca01a1
)
Revert "usb: gadget: composite: dequeue cdev->req before free it in composite_dev_cle...
author
Felipe Balbi
<
[email protected]
>
Thu, 18 Sep 2014 14:31:32 +0000
(09:31 -0500)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 23 Sep 2014 14:56:21 +0000
(07:56 -0700)
This reverts commit
f2267089ea17fa97b796b1b4247e3f8957655df3
.
That commit causes more problem than fixes. Firstly, kfree()
should be called after usb_ep_dequeue() and secondly, the way
things are, we will try to dequeue a request that has already
completed much more frequently than one which is pending.
Cc: Li Jun <
[email protected]
>
Signed-off-by: Felipe Balbi <
[email protected]
>
Cc: stable <
[email protected]
> # 3.17
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/gadget/composite.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/composite.c
b/drivers/usb/gadget/composite.c
index e07eddbb3f8c806853cb6150e26b4695fe9ef25a..a8c18df171c34cbcad3e0af3f807c32d5f9546cd 100644
(file)
--- a/
drivers/usb/gadget/composite.c
+++ b/
drivers/usb/gadget/composite.c
@@
-1956,7
+1956,6
@@
void composite_dev_cleanup(struct usb_composite_dev *cdev)
}
if (cdev->req) {
kfree(cdev->req->buf);
- usb_ep_dequeue(cdev->gadget->ep0, cdev->req);
usb_ep_free_request(cdev->gadget->ep0, cdev->req);
}
cdev->next_string_id = 0;