]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: fix warning for potentially insecure string
authorSunil Khatri <sunil.khatri@amd.com>
Fri, 6 Mar 2026 11:18:02 +0000 (16:48 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Mar 2026 21:33:51 +0000 (16:33 -0500)
commit210fa907a64496af6341c3455cb267d2b68dfb12
treeec038ea235c587c2bd43133c8561b31b77fa9f14
parent79b7209c9c61584e8584f8bfe8d259e202fe7107
drm/amdgpu: fix warning for potentially insecure string

linux/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2358:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                         sprintf(ring->name, amdgpu_sw_ring_name(i));
                                             ^~~~~~~~~~~~~~~~~~~~~~
linux/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2358:24: note: treat the string as an argument to avoid this
                         sprintf(ring->name, amdgpu_sw_ring_name(i));

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c