]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: Fix null reference to state when getting subvp type
authorDillon Varone <dillon.varone@amd.com>
Mon, 11 Dec 2023 21:49:20 +0000 (16:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Dec 2023 19:59:02 +0000 (14:59 -0500)
[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>
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c

index d0247cd7833f0f739f26d56116c71339fc899cc6..632aa091b6b6b2551ba6b2a8f7c103c3d29f0658 100644 (file)
@@ -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;