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

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

Merge "msm: ipa: Added check to detect iova range collision"

parents d0390c16 0e532e42
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2476,7 +2476,7 @@ static int ipa_mpm_populate_smmu_info(struct platform_device *pdev)
	cb->va_size = carved_iova_ap_mapping[1];
	cb->va_end = cb->va_start + cb->va_size;

	if (cb->va_start >= ap_cb->va_start && cb->va_start < ap_cb->va_end) {
	if (cb->va_start >= ap_cb->va_start || cb->va_end >= ap_cb->va_start) {
		IPA_MPM_ERR("MPM iommu and AP overlap addr 0x%lx\n",
				cb->va_start);
		ipa_assert();