mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
msm; kgsl: Correct secure pagetable pointer check
Secure pagetable pointer in case of secure pagetable creation failure is set to ERR_PTR. Correct the secure pagetable pointer check in kgsl_iommu_map_secure_global to avoid invalid pointer access when someone tries to map a secure global buffer. Change-Id: Ic938072e38c410a31158b8ab83f2678b2a64f276 Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
This commit is contained in:
parent
38b1718d28
commit
612b69bab2
1 changed files with 1 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ static int kgsl_iommu_get_gpuaddr(struct kgsl_pagetable *pagetable,
|
|||
static void kgsl_iommu_map_secure_global(struct kgsl_mmu *mmu,
|
||||
struct kgsl_memdesc *memdesc)
|
||||
{
|
||||
if (!mmu->securepagetable)
|
||||
if (IS_ERR_OR_NULL(mmu->securepagetable))
|
||||
return;
|
||||
|
||||
if (!memdesc->gpuaddr) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue