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

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

Merge "dwc3: gadget: Avoid processing of trb if HWO bit is set"

parents bc87fc40 582e4767
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2423,6 +2423,11 @@ static int dwc3_cleanup_done_reqs(struct dwc3 *dwc, struct dwc3_ep *dep,
				dep->name, event->status);
			return 1;
		}

		/* Make sure that not to queue any TRB if HWO bit is set. */
		if (req->trb->ctrl & DWC3_TRB_CTRL_HWO)
			return 0;

		i = 0;
		do {
			slot = req->start_slot + i;