summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDillon Varone <dillon.varone@amd.com>2023-12-11 16:49:20 -0500
committerAlex Deucher <alexander.deucher@amd.com>2023-12-19 14:59:02 -0500
commitb03281e925f996ffc850ad25de10f4586a8c7435 (patch)
treeaefc0b2047295d73aa0a193bab3c41130c31437b
parent012a04b1d6af629077bf98e172d946bf893a4726 (diff)
downloadlinux-stable-b03281e925f996ffc850ad25de10f4586a8c7435.tar.gz
linux-stable-b03281e925f996ffc850ad25de10f4586a8c7435.tar.bz2
linux-stable-b03281e925f996ffc850ad25de10f4586a8c7435.zip
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 <alvin.lee2@amd.com> Acked-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Dillon Varone <dillon.varone@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c2
1 files changed, 1 insertions, 1 deletions
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 d0247cd7833f..632aa091b6b6 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;