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

Commit 57ed71fa authored by Hareesh Gundu's avatar Hareesh Gundu
Browse files

msm: kgsl: Ensure _free_pt() gets called on error case



During the global pt initialization there is possibility that
we set invalid token in iommu_fault_handler on error of
smmu aperture programming. Fix this to handle the error
gracefully to avoid incorrect pointer dereferences.

Change-Id: Ib1c24c1d078c68fd86de9f19cbb72bf7b2b57f21
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent 5278bae1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1257,7 +1257,7 @@ static int _init_global_pt(struct kgsl_mmu *mmu, struct kgsl_pagetable *pt)
		if (ret) {
			pr_err("SMMU aperture programming call failed with error %d\n",
									ret);
			return ret;
			goto done;
		}
	}