mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-26 15:45:14 +08:00
usb: gadget: storage: release superspeed descriptors.
Release superspeed mass storage descriptors memory when the function is unbind. Signed-off-by: Yu Xu <yuxu@marvell.com> Acked-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
dc47ce90c3
commit
f44b915d31
@ -2975,6 +2975,7 @@ static void fsg_unbind(struct usb_configuration *c, struct usb_function *f)
|
|||||||
fsg_common_put(common);
|
fsg_common_put(common);
|
||||||
usb_free_descriptors(fsg->function.descriptors);
|
usb_free_descriptors(fsg->function.descriptors);
|
||||||
usb_free_descriptors(fsg->function.hs_descriptors);
|
usb_free_descriptors(fsg->function.hs_descriptors);
|
||||||
|
usb_free_descriptors(fsg->function.ss_descriptors);
|
||||||
kfree(fsg);
|
kfree(fsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user