提交 f44b915d 编写于 作者: Y Yu Xu 提交者: Felipe Balbi

usb: gadget: storage: release superspeed descriptors.

Release superspeed mass storage descriptors memory
when the function is unbind.
Signed-off-by: NYu Xu <yuxu@marvell.com>
Acked-by: NMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 dc47ce90
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册