drm/amd/display: Fix a logic defect in cursor move
authorJerry Zuo <Jerry.Zuo@amd.com>
Thu, 5 Oct 2017 19:37:46 +0000 (15:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:49:23 +0000 (16:49 -0400)
commit886daac91d4c794fa76a0e5cf1101bdb329f3fe3
tree749352990cda1d942e7bed57456ae3a0fe102133
parent3411eac1a144ac5ad5a7ab994645724130bb2996
drm/amd/display: Fix a logic defect in cursor move

Regression caused by: Ib98354194d7

Need to check crtc->stream before updating cursor attributes
and position.

Signed-off-by: Jerry Zuo <Jerry.Zuo@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c