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-13 15:44:03 -0700 |
commit | 16a2f970f3b4beb8d21009b2c45b9b5ab56bb621 (patch) | |
tree | 0d1d48da7bc32efceed9fe90760239de363b84a9 | |
parent | 0fdf65c3394358a3634ad1064ea4984a03a6aa07 (diff) | |
download | linux-16a2f970f3b4beb8d21009b2c45b9b5ab56bb621.tar.bz2 |
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>
-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); } |