summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2024-05-29 13:55:59 -0600
committerAlex Deucher <alexander.deucher@amd.com>2024-06-14 16:17:17 -0400
commit97dc6a480c8189d1f130fcd026391cef5f7d8b34 (patch)
treeb828b6c91c6ae0b50db7718cc8554c1ca2a0e8b9 /drivers/gpu/drm/amd/display
parentd281b7742662e199fbba57fbd86c6c2bdd73104a (diff)
downloadlinux-97dc6a480c8189d1f130fcd026391cef5f7d8b34.tar.gz
linux-97dc6a480c8189d1f130fcd026391cef5f7d8b34.tar.bz2
linux-97dc6a480c8189d1f130fcd026391cef5f7d8b34.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display')
-rw-r--r--drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c2
1 files changed, 1 insertions, 1 deletions
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 fe0bb6147e36..116411aa0a2b 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;