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

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

Merge "usb: dwc3-msm: Fix out-of-bounds access in bus voting"

parents e2cda636 2c605b45
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2740,7 +2740,7 @@ static int dwc3_msm_update_bus_bw(struct dwc3_msm *mdwc, enum bus_vote bv)
	else if (bv == BUS_VOTE_NONE)
		bv_index = BUS_VOTE_NONE;

	for (i = 0; mdwc->icc_paths[i]; i++) {
	for (i = 0; i < ARRAY_SIZE(mdwc->icc_paths); i++) {
		ret = icc_set_bw(mdwc->icc_paths[i],
				bus_vote_values[bv_index][i].avg,
				bus_vote_values[bv_index][i].peak);