diff options
author | guoyin.chen <guoyin.chen@freescale.com> | 2014-07-30 14:05:28 +0800 |
---|---|---|
committer | guoyin.chen <guoyin.chen@freescale.com> | 2014-07-31 15:49:25 +0800 |
commit | b1fde98163647702f878ace02de74c8d45819b98 (patch) | |
tree | 8bc7b0bcb34c894c97af50651c1f7005353d9652 | |
parent | bde2ffcb828ed7cc6139e251b3914f58ab825b2a (diff) |
ENGR00322643-1 WFD between source and sink lost if disable USB tethering
RNDIS will keep allocate the string id from USB Composite drivers
RNDIS will corrupt the list in unbind if the allocation fails in bind
Follow mtp gadget driver to only allocate the ID in bind
And not to clear the ID in unbind
Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
-rw-r--r-- | drivers/usb/gadget/f_rndis.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_rndis.c b/drivers/usb/gadget/f_rndis.c index 21c5ee2482d6..e9ad40917ed0 100644 --- a/drivers/usb/gadget/f_rndis.c +++ b/drivers/usb/gadget/f_rndis.c @@ -795,7 +795,6 @@ rndis_unbind(struct usb_configuration *c, struct usb_function *f) rndis_deregister(rndis->config); rndis_exit(); - rndis_string_defs[0].id = 0; usb_free_all_descriptors(f); kfree(rndis->notify_req->buf); |