diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2011-04-11 20:44:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-14 00:44:03 +0200 |
commit | 16a2f970f3b4beb8d21009b2c45b9b5ab56bb621 (patch) | |
tree | 0d1d48da7bc32efceed9fe90760239de363b84a9 /drivers | |
parent | USB: ohci-au1xxx: fix warning "__BIG_ENDIAN" is not defined (diff) | |
download | linux-16a2f970f3b4beb8d21009b2c45b9b5ab56bb621.tar.xz linux-16a2f970f3b4beb8d21009b2c45b9b5ab56bb621.zip |
usb/gadget: don't leak hs_descriptors
We should free both descriptors.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/f_audio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_audio.c b/drivers/usb/gadget/f_audio.c index 9abecfddb27d..0111f8a9cf7f 100644 --- a/drivers/usb/gadget/f_audio.c +++ b/drivers/usb/gadget/f_audio.c @@ -706,6 +706,7 @@ f_audio_unbind(struct usb_configuration *c, struct usb_function *f) struct f_audio *audio = func_to_audio(f); usb_free_descriptors(f->descriptors); + usb_free_descriptors(f->hs_descriptors); kfree(audio); } |