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

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

Merge "msm: kgsl: Return a valid entry in case of secure GPU address"

parents 6465d7bf ab30b65f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1206,7 +1206,9 @@ kgsl_sharedmem_find(struct kgsl_process_private *private, uint64_t gpuaddr)
	if (!private)
		return NULL;

	if (!kgsl_mmu_gpuaddr_in_range(private->pagetable, gpuaddr))
	if (!kgsl_mmu_gpuaddr_in_range(private->pagetable, gpuaddr) &&
		!kgsl_mmu_gpuaddr_in_range(
			private->pagetable->mmu->securepagetable, gpuaddr))
		return NULL;

	spin_lock(&private->mem_lock);