aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2024-01-17 03:11:52 +0000
committerAlex Deucher <[email protected]>2024-01-22 22:13:26 +0000
commit3295580d4683bdc56c0662b4a4834f597baceadc (patch)
treed2317d9c11853a47316bef41d4cc50fd2566eaa3 /drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h
parentdrm/amdgpu: update check condition of query for ras page retire (diff)
downloadkernel-3295580d4683bdc56c0662b4a4834f597baceadc.tar.gz
kernel-3295580d4683bdc56c0662b4a4834f597baceadc.zip
drm/amd/display: Fix uninitialized variable usage in core_link_ 'read_dpcd() & write_dpcd()' functions
The 'status' variable in 'core_link_read_dpcd()' & 'core_link_write_dpcd()' was uninitialized. Thus, initializing 'status' variable to 'DC_ERROR_UNEXPECTED' by default. Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dpcd.c:226 core_link_read_dpcd() error: uninitialized symbol 'status'. drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dpcd.c:248 core_link_write_dpcd() error: uninitialized symbol 'status'. Cc: [email protected] Cc: Jerry Zuo <[email protected]> Cc: Jun Lei <[email protected]> Cc: Wayne Lin <[email protected]> Cc: Aurabindo Pillai <[email protected]> Cc: Rodrigo Siqueira <[email protected]> Cc: Hamza Mahfooz <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h')
0 files changed, 0 insertions, 0 deletions