summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYu Xu <yuxu@marvell.com>2011-12-09 20:03:33 +0400
committerFelipe Balbi <balbi@ti.com>2011-12-12 14:24:07 +0400
commitf44b915d315ff0a7dd362c5c0eac5fbde4cc4411 (patch)
tree2e748d94c3f5e80d0c999cf1e9b61b789ab02253 /drivers
parentdc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50 (diff)
downloadlinux-f44b915d315ff0a7dd362c5c0eac5fbde4cc4411.tar.xz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/f_mass_storage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c
index c39d58860fa0..1a6f415c0d02 100644
--- a/drivers/usb/gadget/f_mass_storage.c
+++ b/drivers/usb/gadget/f_mass_storage.c
@@ -2975,6 +2975,7 @@ static void fsg_unbind(struct usb_configuration *c, struct usb_function *f)
fsg_common_put(common);
usb_free_descriptors(fsg->function.descriptors);
usb_free_descriptors(fsg->function.hs_descriptors);
+ usb_free_descriptors(fsg->function.ss_descriptors);
kfree(fsg);
}