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

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

Merge "usb: dwc3: Handle suspicious GEVNTCOUNT"

parents 04ab591f 42adf5ed
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3479,6 +3479,11 @@ static irqreturn_t dwc3_check_event_buf(struct dwc3 *dwc, u32 buf)
	if (!count)
		return IRQ_NONE;

	if (count > evt->length) {
		dev_warn(dwc->dev, "%s: ev_count is huge: %d", __func__, count);
		return IRQ_NONE;
	}

	evt->count = count;
	evt->flags |= DWC3_EVENT_PENDING;