drm/amd/display: Handle case when stream not found in set_dpms
authorEric Yang <Eric.Yang2@amd.com>
Tue, 3 Oct 2017 22:15:51 +0000 (18:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:48:05 +0000 (16:48 -0400)
commit8459f633b65a81979b9b233ed0a91a9fdc98b7bd
tree4812e53e0530ee26803beb024f75c83563fb4166
parentc196cbe065da1c9b5f7683af9cdd0889760151c1
drm/amd/display: Handle case when stream not found in set_dpms

When validate with context fail to add stream to the context, we have
a case where set_dpms won't be able to find the stream that need to
be disabled.

Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c