drm/amd/display: Fix potential nullptr error
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Tue, 9 Oct 2018 17:47:34 +0000 (13:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:21:37 +0000 (14:21 -0500)
commit4f7129112c2a30331f3045a42026fad82e6cb72b
tree8ea0e4b9a70cec74074e85b3447c7b848ad1531d
parent3384521a79edcf6a25a2dfef079f4ec8053b7b33
drm/amd/display: Fix potential nullptr error

[Why]
Fix surface/plane potential nullptr

[How]
add null check

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c