summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/f_midi.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2012-10-22 22:15:02 +0200
committerFelipe Balbi <balbi@ti.com>2012-10-31 14:05:20 +0100
commitd185039f7982eb82cf8d03b6fb6689587ca5af24 (patch)
tree7e4aef1f8ad64a9fdf915c47c06dc2cbd11df15c /drivers/usb/gadget/f_midi.c
parentusb: gadget: audio: remove c->highpseed = true from f_midi and uac1 (diff)
downloadlinux-d185039f7982eb82cf8d03b6fb6689587ca5af24.tar.xz
linux-d185039f7982eb82cf8d03b6fb6689587ca5af24.zip
usb: gadget: midi: free hs descriptors
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>
Diffstat (limited to 'drivers/usb/gadget/f_midi.c')
-rw-r--r--drivers/usb/gadget/f_midi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_midi.c b/drivers/usb/gadget/f_midi.c
index b2522ba36912..b978c5d15cb4 100644
--- a/drivers/usb/gadget/f_midi.c
+++ b/drivers/usb/gadget/f_midi.c
@@ -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);
}