Commit 4ebf8483 authored by Yue Hin Lau's avatar Yue Hin Lau Committed by Alex Deucher

drm/amd/display: check for null before calling is_blanked

Signed-off-by: default avatarYue Hin Lau <Yuehin.Lau@amd.com>
Reviewed-by: default avatarEric Bernstein <Eric.Bernstein@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b5f96fe1
...@@ -580,7 +580,7 @@ static void program_timing_sync( ...@@ -580,7 +580,7 @@ static void program_timing_sync(
for (j = 0; j < group_size; j++) { for (j = 0; j < group_size; j++) {
struct pipe_ctx *temp; struct pipe_ctx *temp;
if (!pipe_set[j]->stream_res.tg->funcs->is_blanked(pipe_set[j]->stream_res.tg)) { if (pipe_set[j]->stream_res.tg->funcs->is_blanked && !pipe_set[j]->stream_res.tg->funcs->is_blanked(pipe_set[j]->stream_res.tg)) {
if (j == 0) if (j == 0)
break; break;
...@@ -593,7 +593,7 @@ static void program_timing_sync( ...@@ -593,7 +593,7 @@ static void program_timing_sync(
/* remove any other unblanked pipes as they have already been synced */ /* remove any other unblanked pipes as they have already been synced */
for (j = j + 1; j < group_size; j++) { for (j = j + 1; j < group_size; j++) {
if (!pipe_set[j]->stream_res.tg->funcs->is_blanked(pipe_set[j]->stream_res.tg)) { if (pipe_set[j]->stream_res.tg->funcs->is_blanked && !pipe_set[j]->stream_res.tg->funcs->is_blanked(pipe_set[j]->stream_res.tg)) {
group_size--; group_size--;
pipe_set[j] = pipe_set[group_size]; pipe_set[j] = pipe_set[group_size];
j--; j--;
......
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