Patchwork [3.5.y.z,extended,stable] Patch "usb: gadget: midi: free hs descriptors" has been added to staging queue

mail settings
Submitter Herton Ronaldo Krzesinski
Date Jan. 7, 2013, 8:32 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/210121/
State New
Headers show


Herton Ronaldo Krzesinski - Jan. 7, 2013, 8:32 p.m.
This is a note to let you know that I have just added a patch titled

    usb: gadget: midi: free hs descriptors

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



From 37a5070c37266357c8d09676f38fdc8d28fc67ca Mon Sep 17 00:00:00 2001
From: Sebastian Andrzej Siewior <>
Date: Mon, 22 Oct 2012 22:15:02 +0200
Subject: [PATCH] usb: gadget: midi: free hs descriptors

commit d185039f7982eb82cf8d03b6fb6689587ca5af24 upstream.

The HS descriptors are only created if HS is supported by the UDC but we
never free them.

Signed-off-by: Sebastian Andrzej Siewior <>
Signed-off-by: Felipe Balbi <>
Signed-off-by: Herton Ronaldo Krzesinski <>
 drivers/usb/gadget/f_midi.c |    1 +
 1 file changed, 1 insertion(+)



diff --git a/drivers/usb/gadget/f_midi.c b/drivers/usb/gadget/f_midi.c
index 2f7e8f2..1bf9596 100644
--- a/drivers/usb/gadget/f_midi.c
+++ b/drivers/usb/gadget/f_midi.c
@@ -416,6 +416,7 @@  static void f_midi_unbind(struct usb_configuration *c, struct usb_function *f)
 	midi->id = NULL;

+	usb_free_descriptors(f->hs_descriptors);