linux/drivers/gpu/drm/amd
Yizhuo Zhai 0726ed3065 drm/amd/display: Fix the uninitialized variable in enable_stream_features()
In function enable_stream_features(), the variable "old_downspread.raw"
could be uninitialized if core_link_read_dpcd() fails, however, it is
used in the later if statement, and further, core_link_write_dpcd()
may write random value, which is potentially unsafe.

Fixes: 6016cd9dba ("drm/amd/display: add helper for enabling mst stream features")
Cc: stable@vger.kernel.org
Signed-off-by: Yizhuo Zhai <yzhai003@ucr.edu>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-12-30 08:54:45 -05:00
..
acp
amdgpu drm/amdgpu: fix runpm documentation 2021-12-30 08:54:45 -05:00
amdkfd drm/amdkfd: correct sdma queue number in kfd device init (v3) 2021-12-30 08:54:43 -05:00
display drm/amd/display: Fix the uninitialized variable in enable_stream_features() 2021-12-30 08:54:45 -05:00
include drm/amdgpu: add support for IP discovery gc_info table v2 2021-12-16 14:08:20 -05:00
pm amdgpu/pm: Make sysfs pm attributes as read-only for VFs 2021-12-30 08:54:45 -05:00