drm/amd/display: Fix the NULL pointer. (v2)
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Thu, 16 Mar 2017 19:51:00 +0000 (15:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:20:23 +0000 (17:20 -0400)
commit53d35dc60d386cdf1d04a318dc010524bf5607a3
tree013b2e4c69761d3a2c77a27ae17e84a222ddd049
parent0e19401f9506e710379396479c3824d80ccdc332
drm/amd/display: Fix the NULL pointer. (v2)

ret value in amdgpu_dm_atomic_check was not rest to EINVAL
after drm_atomic_add_affected_planes and by this making
any subsequent validation failure pass when returning
to atomic_check.

v2: Add WARN_ON print for dc_commit_streams in
amdgpu_dm_atomic_commit_tail since this should never
fail.

Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c