From: Sebastian Andrzej Siewior Date: Thu, 9 Feb 2012 08:24:59 +0000 (+0100) Subject: usb: gadget: dummy_hcd: allow to free requests on disabled endpoints X-Git-Tag: v3.5-rc1~149^2~139^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f99987bb261ed80f645ed0acd13732922ca10138;p=pandora-kernel.git usb: gadget: dummy_hcd: allow to free requests on disabled endpoints ep->desc is set to NULL on endpoint disable. That means once an endpoint is disabled it is not possible to free requests. In my target gadget I first disable endpoints to make sure I have no requests on the fly and then free frequests. On dummy I am leaking memory here. Since I can't imagine a reason why it should be a bad thing, lets allow to free requests on disabled endpoints. On removal of composite the ep0 request is removed so lets allow that here as well. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed