]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: correct NULL pointer dereference in context_init
authorBrian Masney <masneyb@onstation.org>
Thu, 27 Jun 2019 02:05:15 +0000 (22:05 -0400)
committerSean Paul <seanpaul@chromium.org>
Mon, 22 Jul 2019 17:40:14 +0000 (13:40 -0400)
commit4ffb3d79ec3dc5a66fd3ea046dbd04aadfaf656d
tree8220dd1d4290a17e75f4e8278047a3b240d23018
parent4efca973a3c384ef7a6e901e4876893afbbde739
drm/msm: correct NULL pointer dereference in context_init

Correct attempted NULL pointer dereference in context_init() when
running without an IOMMU.

Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Brian Masney <masneyb@onstation.org>
Fixes: 2c89442eeb2b ("drm/msm: Pass the MMU domain index in struct msm_file_private")
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190627020515.5660-1-masneyb@onstation.org
drivers/gpu/drm/msm/msm_drv.c