Advertisement
z3ntu

Fix NULL pointer dereference

Mar 2nd, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.43 KB | None | 0 0
  1. diff --git a/drivers/gpu/drm/msm/msm_gem_vma.c b/drivers/gpu/drm/msm/msm_gem_vma.c
  2. index 49c04829cf34..fcf7a83f0e6f 100644
  3. --- a/drivers/gpu/drm/msm/msm_gem_vma.c
  4. +++ b/drivers/gpu/drm/msm/msm_gem_vma.c
  5. @@ -85,7 +85,7 @@ msm_gem_map_vma(struct msm_gem_address_space *aspace,
  6.  
  7.     vma->mapped = true;
  8.  
  9. -   if (aspace->mmu)
  10. +   if (aspace && aspace->mmu)
  11.         ret = aspace->mmu->funcs->map(aspace->mmu, vma->iova, sgt,
  12.                 size, prot);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement