diff options
author | George Cherian <george.cherian@ti.com> | 2013-05-27 14:35:49 +0530 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-05-28 22:17:20 +0300 |
commit | 5bf8fae33d14cc5c3c53a926f9079f92c8b082b0 (patch) | |
tree | d4510155df11add92afe6d8324342e87dd8ef73c /drivers/usb/musb/musb_host.c | |
parent | 022d0547aa8b00ff5035ba6207ebc2c08ea0a51f (diff) | |
download | blackbird-op-linux-5bf8fae33d14cc5c3c53a926f9079f92c8b082b0.tar.gz blackbird-op-linux-5bf8fae33d14cc5c3c53a926f9079f92c8b082b0.zip |
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 <george.cherian@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_host.c')
0 files changed, 0 insertions, 0 deletions