mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
Merge "msm: kgsl: Return a valid entry in case of secure GPU address"
This commit is contained in:
commit
be73b6b4dc
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue