From: Dillon Varone Date: Mon, 11 Dec 2023 21:49:20 +0000 (-0500) Subject: drm/amd/display: Fix null reference to state when getting subvp type X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b03281e925f996ffc850ad25de10f4586a8c7435;p=linux.git drm/amd/display: Fix null reference to state when getting subvp type [WHY&HOW] Need to provide valid pointer to dc_state when getting subvp pipe type. Reviewed-by: Alvin Lee Acked-by: Wayne Lin Signed-off-by: Dillon Varone Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c index d0247cd7833f0..632aa091b6b6b 100644 --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c @@ -2333,7 +2333,7 @@ void dcn10_enable_timing_synchronization( } for (i = 1; i < group_size; i++) { - if (dc_state_get_pipe_subvp_type(NULL, grouped_pipes[i]) == SUBVP_PHANTOM) + if (dc_state_get_pipe_subvp_type(state, grouped_pipes[i]) == SUBVP_PHANTOM) continue; opp = grouped_pipes[i]->stream_res.opp;