]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/msm: correct attempted NULL pointer dereference in debugfs
authorBrian Masney <masneyb@onstation.org>
Mon, 13 May 2019 23:41:05 +0000 (19:41 -0400)
committerSean Paul <seanpaul@chromium.org>
Tue, 14 May 2019 17:53:58 +0000 (13:53 -0400)
commit90f94660e53189755676543954101de78c26253b
treee4054d66113152fc770d87ca540cf2c888a64a02
parente2f597a20470d7dfeca49c3d45cb8a7e46d3cf66
drm/msm: correct attempted NULL pointer dereference in debugfs

msm_gem_describe() 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>
Fixes: 575f0485508b ("drm/msm: Clean up and enhance the output of the 'gem' debugfs node")
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190513234105.7531-2-masneyb@onstation.org
drivers/gpu/drm/msm/msm_gem.c