Merge "usb: gadget: mtp: reset string descriptor's index with unbind"
This commit is contained in:
commit
3e41080faa
1 changed files with 1 additions and 0 deletions
|
@ -1504,6 +1504,7 @@ mtp_function_unbind(struct usb_configuration *c, struct usb_function *f)
|
||||||
struct usb_request *req;
|
struct usb_request *req;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
mtp_string_defs[INTERFACE_STRING_INDEX].id = 0;
|
||||||
mutex_lock(&dev->read_mutex);
|
mutex_lock(&dev->read_mutex);
|
||||||
while ((req = mtp_req_get(dev, &dev->tx_idle)))
|
while ((req = mtp_req_get(dev, &dev->tx_idle)))
|
||||||
mtp_request_free(req, dev->ep_in);
|
mtp_request_free(req, dev->ep_in);
|
||||||
|
|
Loading…
Add table
Reference in a new issue