diff options
author | Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> | 2024-01-23 20:18:07 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-01-25 14:58:02 -0500 |
commit | 4b09715f1504f1b6e8dff0e9643630610bc05141 (patch) | |
tree | 9e68c1ccfb0db41299be079e036bfab76c29ada1 /sound/aoa | |
parent | c84a7e21db79fa899b9ad2d56464779f182789cb (diff) | |
download | linux-stable-4b09715f1504f1b6e8dff0e9643630610bc05141.tar.gz linux-stable-4b09715f1504f1b6e8dff0e9643630610bc05141.tar.bz2 linux-stable-4b09715f1504f1b6e8dff0e9643630610bc05141.zip |
drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'
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>
Diffstat (limited to 'sound/aoa')
0 files changed, 0 insertions, 0 deletions