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

Commit 52d55680 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: Fix buffer overflow for session"

parents b2d78dcb 72199ca1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2051,6 +2051,9 @@ static int fastrpc_cb_legacy_probe(struct device *dev)
			&disable_htw);
	VERIFY(err, !arm_iommu_attach_device(first_sess->dev,
					first_sess->smmu.mapping));
	if (err)
		goto bail;
	VERIFY(err, (sids_size/sizeof(unsigned int)) <= NUM_SESSIONS);
	if (err)
		goto bail;
	for (i = 0; i < sids_size/sizeof(unsigned int); i++) {