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

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

Merge "drivers: mailbox: rpmh: fix validation check in probe" into msm-next

parents 6d3e3791 aaad06e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1180,7 +1180,7 @@ static int rsc_drv_probe(struct platform_device *pdev)

		if (tcs->num_tcs > MAX_TCS_PER_TYPE ||
			st + tcs->num_tcs > max_tcs ||
			st + tcs->num_tcs >= sizeof(tcs->tcs_mask))
			st + tcs->num_tcs >= 8 * sizeof(tcs->tcs_mask))
			return -EINVAL;

		tcs->tcs_mask = ((1 << tcs->num_tcs) - 1) << st;