From 248bf2cc2ff3ed54f3c2662f657ca2399788d3e5 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 27 Jan 2022 23:14:22 +0000 Subject: 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(+) (limited to 'sys/dev/pci/drm') 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)); -- cgit v1.2.3