Skip to content

Commit

Permalink
usb: gadget: midi: free hs descriptors
Browse files Browse the repository at this point in the history
The HS descriptors are only created if HS is supported by the UDC but we
never free them.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Sebastian Andrzej Siewior authored and Felipe Balbi committed Oct 31, 2012
1 parent 1377af2 commit d185039
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/gadget/f_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ static void f_midi_unbind(struct usb_configuration *c, struct usb_function *f)
midi->id = NULL;

usb_free_descriptors(f->descriptors);
usb_free_descriptors(f->hs_descriptors);
kfree(midi);
}

Expand Down

0 comments on commit d185039

Please sign in to comment.