提交 72a65a0d 编写于 作者: F Felipe Balbi

Revert "usb: gadget: composite: dequeue cdev->req before free its buffer"

This reverts commit be0a8887.

The original commit f2267089
(usb: gadget: composite: dequeue cdev->req before free it in
composite_dev_cleanup) ended up being reverted because it caused
more issues then fixed. We will also revert this counter part
commit so we start clean to properly add that idea back.

Cc: Li Jun <b47624@freescale.com>
Signed-of-by: NFelipe Balbi <balbi@ti.com>
上级 5b484989
...@@ -1955,8 +1955,8 @@ void composite_dev_cleanup(struct usb_composite_dev *cdev) ...@@ -1955,8 +1955,8 @@ void composite_dev_cleanup(struct usb_composite_dev *cdev)
usb_ep_free_request(cdev->gadget->ep0, cdev->os_desc_req); usb_ep_free_request(cdev->gadget->ep0, cdev->os_desc_req);
} }
if (cdev->req) { if (cdev->req) {
usb_ep_dequeue(cdev->gadget->ep0, cdev->req);
kfree(cdev->req->buf); kfree(cdev->req->buf);
usb_ep_dequeue(cdev->gadget->ep0, cdev->req);
usb_ep_free_request(cdev->gadget->ep0, cdev->req); usb_ep_free_request(cdev->gadget->ep0, cdev->req);
} }
cdev->next_string_id = 0; cdev->next_string_id = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册