Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Fix uninitialized variables in dcn401

This fixes an UNINIT issue reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Alex Hung and committed by
Alex Deucher
97dc6a48 d281b774

+1 -1
+1 -1
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
··· 805 805 unsigned int event_triggers = 0; 806 806 int opp_cnt = 1; 807 807 int opp_inst[MAX_PIPES] = {0}; 808 - struct pipe_ctx *opp_heads[MAX_PIPES]; 808 + struct pipe_ctx *opp_heads[MAX_PIPES] = {0}; 809 809 bool manual_mode; 810 810 unsigned int tmds_div = PIXEL_RATE_DIV_NA; 811 811 unsigned int unused_div = PIXEL_RATE_DIV_NA;