drm/msm: correct attempted NULL pointer dereference in put_iova
authorBrian Masney <masneyb@onstation.org>
Mon, 3 Jun 2019 01:01:31 +0000 (21:01 -0400)
committerRob Clark <robdclark@chromium.org>
Tue, 18 Jun 2019 21:03:16 +0000 (14:03 -0700)
commitd67f1b6d0e0be8240186e3cc998353e52ed6ea31
treef586bef4a5373687d26f5e579fe499b1aa19ebd9
parent61f0479757aa4371801b9d552e85dd6d6327d036
drm/msm: correct attempted NULL pointer dereference in put_iova

put_iova() would attempt to dereference a NULL pointer via the
address space pointer when no IOMMU is present. Correct this by adding
the appropriate check.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_gem.c