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

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

Merge "msm: ADSPRPC: Validate the SMMU session count"

parents 745887cd 276ab996
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2272,6 +2272,9 @@ static int fastrpc_cb_legacy_probe(struct device *dev)
	if (err)
		goto bail;
	for (i = 0; i < sids_size/sizeof(unsigned int); i++) {
		VERIFY(err, chan->sesscount < NUM_SESSIONS);
		if (err)
			goto bail;
		sess = &chan->session[chan->sesscount];
		sess->smmu.cb = sids[i];
		sess->dev = first_sess->dev;