From: Alex Hung Date: Wed, 29 May 2024 19:55:59 +0000 (-0600) Subject: drm/amd/display: Fix uninitialized variables in dcn401 X-Git-Tag: v6.11-rc1~141^2~18^2~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=97dc6a480c8189d1f130fcd026391cef5f7d8b34;p=thirdparty%2Fkernel%2Flinux.git drm/amd/display: Fix uninitialized variables in dcn401 This fixes an UNINIT issue reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Zaeem Mohamed Signed-off-by: Alex Hung Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c index fe0bb6147e369..116411aa0a2b9 100644 --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c @@ -805,7 +805,7 @@ enum dc_status dcn401_enable_stream_timing( unsigned int event_triggers = 0; int opp_cnt = 1; int opp_inst[MAX_PIPES] = {0}; - struct pipe_ctx *opp_heads[MAX_PIPES]; + struct pipe_ctx *opp_heads[MAX_PIPES] = {0}; bool manual_mode; unsigned int tmds_div = PIXEL_RATE_DIV_NA; unsigned int unused_div = PIXEL_RATE_DIV_NA;