kernel_samsung_a53x/drivers/gpu/drm/amd
Srinivasan Shanmugam 4a8432a32e drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'
[ Upstream commit 4b09715f1504f1b6e8dff0e9643630610bc05141 ]

Tell snprintf() to store at most 10 bytes in the output buffer
instead of 30.

Fixes the below:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:1508 dp_dsc_clock_en_read() error: snprintf() is printing too much 30 vs 10

Fixes: c06e09b76639 ("drm/amd/display: Add DSC parameters logging to debugfs")
Cc: Alex Hung <alex.hung@amd.com>
Cc: Qingqing Zhuo <qingqing.zhuo@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:51 +01:00
..
acp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amdgpu drm/amdgpu: Release 'adev->pm.fw' before return in 'amdgpu_device_need_post()' 2024-11-18 12:13:21 +01:00
amdkfd Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
display drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()' 2024-11-19 08:44:51 +01:00
include drm/amd: Fix UBSAN array-index-out-of-bounds for SMU7 2024-11-18 11:43:13 +01:00
pm drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 'get_platform_power_management_table()' 2024-11-18 12:13:20 +01:00