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

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

Merge "msm: kgsl: Fix NULL pointer dereference in gmu_memory_close()"

parents be244b64 61addc66
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -383,6 +383,9 @@ static void gmu_memory_close(struct gmu_device *gmu)
		md = &gmu->kmem_entries[i];
		ctx = &gmu_ctx[md->ctx_idx];

		if (!ctx->domain)
			continue;

		if (md->gmuaddr && md->mem_type != GMU_ITCM &&
				md->mem_type != GMU_DTCM)
			iommu_unmap(ctx->domain, md->gmuaddr, md->size);