From b29b5eb562175a39ae947738c0961535ba90fa55 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 27 Jan 2022 23:14:21 +0000 Subject: [PATCH] drm/amd/display: Fix the uninitialized variable in enable_stream_features() From Yizhuo Zhai 3bf997ec299cdf7280b2039806e5e1d847df111a in linux 5.15.y/5.15.17 0726ed3065eeb910f9cea0c933bc021a848e00b3 in mainline linux --- sys/dev/pci/drm/amd/display/dc/core/dc_link.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/pci/drm/amd/display/dc/core/dc_link.c b/sys/dev/pci/drm/amd/display/dc/core/dc_link.c index 5602340a240..1715dfd7406 100644 --- a/sys/dev/pci/drm/amd/display/dc/core/dc_link.c +++ b/sys/dev/pci/drm/amd/display/dc/core/dc_link.c @@ -1696,6 +1696,8 @@ static void enable_stream_features(struct pipe_ctx *pipe_ctx) union down_spread_ctrl old_downspread; union down_spread_ctrl new_downspread; + memset(&old_downspread, 0, sizeof(old_downspread)); + core_link_read_dpcd(link, DP_DOWNSPREAD_CTRL, &old_downspread.raw, sizeof(old_downspread)); -- 2.20.1