mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
0fdf65c339
commit
16a2f970f3
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue