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

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

Merge "ASoC: msm8x16-wcd: check on array index for out of bound access"

parents 2e15fd5a 80013cb6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -438,6 +438,8 @@ static bool msm8x16_adj_ref_current(struct snd_soc_codec *codec,
				impedance_l, impedance_r);
		compare_imp = (msm8x16_wcd->imped_det_pin == WCD_MBHC_DET_HPHR)
				? *impedance_r : *impedance_l;
		if (i >= I_1_UA)
			break;
	}

	return true;