Commit 75387cc2 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Ben Hutchings

usb: gadget: midi: free hs descriptors

commit d185039f upstream.

The HS descriptors are only created if HS is supported by the UDC but we
never free them.
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 3bda2981
......@@ -416,6 +416,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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment