From: George Cherian Date: Mon, 27 May 2013 09:05:49 +0000 (+0530) Subject: usb: dwc3: gadget: free trb pool only from epnum 2 X-Git-Tag: v3.10-rc5~20^2~22^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bf8fae33d14cc5c3c53a926f9079f92c8b082b0;p=pandora-kernel.git usb: dwc3: gadget: free trb pool only from epnum 2 we never allocate a TRB pool for physical endpoints 0 and 1 so trying to free it (a invalid TRB pool pointer) will lead us in a warning while removing dwc3.ko module. In order to fix the situation, all we have to do is skip dwc3_free_trb_pool() for physical endpoints 0 and 1 just as we while deleting endpoints from the endpoints list. Cc: stable@vger.kernel.org Signed-off-by: George Cherian Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed