]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit092f045e3e73a570d8b0c2399ec6b83ab64781c6
treef586bef4a5373687d26f5e579fe499b1aa19ebd9
parent0ae4db1b33086ada8093de14ecef14e63a1fa277
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