drm/amd/display: Initialize mode_select to 0
authorAlex Hung <alex.hung@amd.com>
Tue, 10 Jun 2025 21:40:18 +0000 (15:40 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jun 2025 13:55:43 +0000 (09:55 -0400)
commit592ddac93f8c02e13f19175745465f8c4d0f56cd
tree2e24678e8623ec86d99ecfbad62e27a95756f869
parent7beee6e91c20f297d2eba90397fe44938138f3b8
drm/amd/display: Initialize mode_select to 0

[WHAT]
mode_select was supposed to be initialized in mpc_read_gamut_remap but
is not set in default case. This can cause indeterminate
behaviors.

This is reported as an UNINIT error by Coverity.

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Fangzhi Zuo <jerry.zuo@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/mpc/dcn401/dcn401_mpc.c