Commit 58a8ee96 authored by Alex Hung's avatar Alex Hung Committed by Alex Deucher

drm/amd/display: Check stream_status before it is used

[WHAT & HOW]
dc_state_get_stream_status can return null, and therefore null must be
checked before stream_status is used.

This fixes 1 NULL_RETURNS issue reported by Coverity.
Signed-off-by: default avatarAlex Hung <alex.hung@amd.com>
Reviewed-by: default avatarRodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarRodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 722e96c9
......@@ -3748,7 +3748,7 @@ static void commit_planes_for_stream_fast(struct dc *dc,
surface_count,
stream,
context);
} else {
} else if (stream_status) {
build_dmub_cmd_list(dc,
srf_updates,
surface_count,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment