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

Commit c306aa20 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3: gadget: Fail request submission if it was already queued"

parents c4051c33 8bb9cbcc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1482,6 +1482,12 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req)
				&req->request, req->dep->name))
		return -EINVAL;

	if (req->request.status == -EINPROGRESS) {
		dev_err(dwc->dev, "%s: %pK request already in queue\n",
					dep->name, req);
		return -EBUSY;
	}

	req->request.actual	= 0;
	req->request.status	= -EINPROGRESS;