aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorYizhuo Zhai <[email protected]>2021-12-18 04:22:23 +0000
committerAlex Deucher <[email protected]>2021-12-30 13:54:45 +0000
commit0726ed3065eeb910f9cea0c933bc021a848e00b3 (patch)
tree9331b02bed051e25e76717f6c774bc2f3693dced /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentdrm/amdgpu: fix runpm documentation (diff)
downloadkernel-0726ed3065eeb910f9cea0c933bc021a848e00b3.tar.gz
kernel-0726ed3065eeb910f9cea0c933bc021a848e00b3.zip
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: 6016cd9dba0f ("drm/amd/display: add helper for enabling mst stream features") Cc: [email protected] Signed-off-by: Yizhuo Zhai <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions