Re: [PATCH] drm/amdgpu: Fix truncation in gfx_v10_0_init_microcode

2024-03-22 Thread Lazar, Lijo
On 3/22/2024 12:24 PM, Srinivasan Shanmugam wrote: > The total size of the fw_name buffer is 8 (for "amdgpu/") + 30 (for > ucode_prefix) + 5 (for "_pfp") + 5 (for "_wks") + 5 (for ".bin") = 53 > characters. > > Fixes the below with gcc W=1: > drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c: In function

[PATCH] drm/amdgpu: Fix truncation in gfx_v10_0_init_microcode

2024-03-22 Thread Srinivasan Shanmugam
The total size of the fw_name buffer is 8 (for "amdgpu/") + 30 (for ucode_prefix) + 5 (for "_pfp") + 5 (for "_wks") + 5 (for ".bin") = 53 characters. Fixes the below with gcc W=1: drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c: In function ‘gfx_v10_0_early_init’: