diff options
author | George Cherian <george.cherian@ti.com> | 2013-05-27 14:35:49 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-13 10:49:39 -0700 |
commit | 48691720be2d219ad2c14580ba5f1d974ad15d8c (patch) | |
tree | 122b09906c385a256eb5f85b8b3444aa16b26f4f /scripts/unifdef.c | |
parent | c67d06ef087d1dccbe85470c490eccfd6184fcbc (diff) |
usb: dwc3: gadget: free trb pool only from epnum 2
commit 5bf8fae33d14cc5c3c53a926f9079f92c8b082b0 upstream.
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.
Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/unifdef.c')
0 files changed, 0 insertions, 0 deletions