]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "usb: gadget: composite: dequeue cdev->req before free it in composite_dev_cle...
authorFelipe Balbi <balbi@ti.com>
Thu, 18 Sep 2014 14:31:32 +0000 (09:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 14:56:21 +0000 (07:56 -0700)
commite8b8038def33fb73d037883e3d193bbd91fe7622
tree7705357b04336caa91ca4d7819f8284de01ab11b
parent75aa7ddccf10acddb70a90dfb149efbd11eb8d83
Revert "usb: gadget: composite: dequeue cdev->req before free it in composite_dev_cleanup"

This reverts commit 34ca1fc7c3ee756830fc8aa970230d79c37e1356.

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 <b47624@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Cc: stable <stable@vger.kernel.org> # 3.17
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/composite.c