diff options
author | Benoit Goby <benoit@android.com> | 2011-05-31 18:25:06 -0700 |
---|---|---|
committer | Benoit Goby <benoit@android.com> | 2011-06-17 16:02:35 -0700 |
commit | f6e7d49e03c475a7f129a0b13ff80bff2abbb2b2 (patch) | |
tree | 3f8ca9e03f0bfe2bb706e188b9f7c75f27f58c9d /drivers/usb/gadget | |
parent | 9902e0b5c53bba7469e7163e539fa696f09e35cc (diff) | |
download | kernel_samsung_espresso10-f6e7d49e03c475a7f129a0b13ff80bff2abbb2b2.zip kernel_samsung_espresso10-f6e7d49e03c475a7f129a0b13ff80bff2abbb2b2.tar.gz kernel_samsung_espresso10-f6e7d49e03c475a7f129a0b13ff80bff2abbb2b2.tar.bz2 |
usb: gadget: f_rndis: fix unbind
Change-Id: Idfde1aee6cfd7c648d4100060e111798c405e32c
Signed-off-by: Benoit Goby <benoit@android.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/f_rndis.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_rndis.c b/drivers/usb/gadget/f_rndis.c index 64faf65..761a789 100644 --- a/drivers/usb/gadget/f_rndis.c +++ b/drivers/usb/gadget/f_rndis.c @@ -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); |