summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2024-04-15 22:16:08 -0600
committerAlex Deucher <alexander.deucher@amd.com>2024-04-26 17:22:44 -0400
commitf851b078b1ed33758662f9bbe8f332c0c45a107a (patch)
tree59d48e4ee1d85f1da5b126474754896e2de0f3d3 /drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
parentba3193fa8fc8910f724b67a523ec67ee24997d3e (diff)
downloadlinux-stable-f851b078b1ed33758662f9bbe8f332c0c45a107a.tar.gz
linux-stable-f851b078b1ed33758662f9bbe8f332c0c45a107a.tar.bz2
linux-stable-f851b078b1ed33758662f9bbe8f332c0c45a107a.zip
drm/amd/display: Fix uninitialized variables in DC
This fixes 29 UNINIT issues reported by Coverity. Reviewed-by: Hersen Wu <hersenxs.wu@amd.com> Acked-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
index 5be976fa44f9..f6fe0a64beac 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
+++ b/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
@@ -723,7 +723,7 @@ static bool dcn32_enough_pipes_for_subvp(struct dc *dc, struct dc_state *context
*/
static bool subvp_subvp_schedulable(struct dc *dc, struct dc_state *context)
{
- struct pipe_ctx *subvp_pipes[2];
+ struct pipe_ctx *subvp_pipes[2] = {0};
struct dc_stream_state *phantom = NULL;
uint32_t microschedule_lines = 0;
uint32_t index = 0;