From: Felipe Balbi Date: Thu, 18 Sep 2014 14:31:32 +0000 (-0500) Subject: Revert "usb: gadget: composite: dequeue cdev->req before free it in composite_dev_cle... X-Git-Tag: fixes-for-v3.18-merge-window~16^2~107 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf17eba7ae1e813b0ad67cb1078dcbd7083b906e;p=pandora-kernel.git Revert "usb: gadget: composite: dequeue cdev->req before free it in composite_dev_cleanup" 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 Signed-off-by: Felipe Balbi Cc: stable # 3.17 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed