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

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

Merge "usb: f_qdss: Call usb_ep_dequeue() API without spinlock acquire" into msm-4.14

parents f29d306e e6b2d9e7
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -881,10 +881,15 @@ void usb_qdss_close(struct usb_qdss_ch *ch)
	}

	if (qdss->endless_req) {
		spin_unlock_irqrestore(&qdss_lock, flags);
		usb_ep_dequeue(qdss->port.data, qdss->endless_req);
		usb_ep_free_request(qdss->port.data, qdss->endless_req);
		spin_lock_irqsave(&qdss_lock, flags);
		if (qdss->endless_req) {
			usb_ep_free_request(qdss->port.data,
					qdss->endless_req);
			qdss->endless_req = NULL;
		}
	}
	gadget = qdss->gadget;
	ch->app_conn = 0;
	spin_unlock_irqrestore(&qdss_lock, flags);