diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-01-27 23:14:22 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-01-27 23:14:22 +0000 |
commit | 248bf2cc2ff3ed54f3c2662f657ca2399788d3e5 (patch) | |
tree | ea0c6e9303c687059b95d11dacc5e24b28828fe5 /sys/dev/pci/drm | |
parent | a2b9931694fafdcca50c175ca786205e30b0009d (diff) |
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
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/amd/display/dc/core/dc_link.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |