mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
usb: gadget: f_rndis: fix unbind
Change-Id: Idfde1aee6cfd7c648d4100060e111798c405e32c Signed-off-by: Benoit Goby <benoit@android.com>
This commit is contained in:
@@ -776,6 +776,8 @@ rndis_unbind(struct usb_configuration *c, struct usb_function *f)
|
||||
rndis_deregister(rndis->config);
|
||||
rndis_exit();
|
||||
|
||||
rndis_string_defs[0].id = 0;
|
||||
|
||||
if (gadget_is_dualspeed(c->cdev->gadget))
|
||||
usb_free_descriptors(f->hs_descriptors);
|
||||
usb_free_descriptors(f->descriptors);
|
||||
|
||||
Reference in New Issue
Block a user