aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
diff options
context:
space:
mode:
authorSean Paul <[email protected]>2018-05-31 18:48:58 +0000
committerRob Clark <[email protected]>2018-06-04 16:50:42 +0000
commit74d3a3a70775de356b96b5461c3a204a51496fb3 (patch)
tree40705c1662d17f938b5a9991d3524fcd6b03f8db /drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
parentdrm/msm: Switch to atomic_helper_commit() (diff)
downloadkernel-74d3a3a70775de356b96b5461c3a204a51496fb3.tar.gz
kernel-74d3a3a70775de356b96b5461c3a204a51496fb3.zip
drm/msm: Fix NULL deref on bind/probe deferral
This patch avoids dereferencing msm_host->dev when it is NULL. If we find ourselves tearing down dsi before calling (mdp4|mdp5|dpu)_kms_init(), we'll end up in a state where the dev pointer is NULL and trying to extract priv from it will fail. This was introduced in a seemingly innocuous commit to ensure the arguments to msm_gem_put_iova() are correct (even though that function has been a stub for ~5 years). Correctness FTW! \o/ Fixes: b01884a286b0 drm/msm: use correct aspace pointer in msm_gem_put_iova() Cc: Daniel Mack <[email protected]> Cc: Rob Clark <[email protected]> Signed-off-by: Sean Paul <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c')
0 files changed, 0 insertions, 0 deletions