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)
commitb03281e925f996ffc850ad25de10f4586a8c7435
treeaefc0b2047295d73aa0a193bab3c41130c31437b
parent012a04b1d6af629077bf98e172d946bf893a4726
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>
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c