Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3802c928 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: mtp: reset string descriptor's index with unbind" into msm-4.9

parents edfa4325 9ce075b8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1425,6 +1425,7 @@ mtp_function_unbind(struct usb_configuration *c, struct usb_function *f)
	struct usb_request *req;
	int i;

	mtp_string_defs[INTERFACE_STRING_INDEX].id = 0;
	while ((req = mtp_req_get(dev, &dev->tx_idle)))
		mtp_request_free(req, dev->ep_in);
	for (i = 0; i < RX_REQ_MAX; i++)