From bb5df7d73c89452dc3ababe4caa548a413d5261a Mon Sep 17 00:00:00 2001 From: jsg Date: Sat, 15 Jun 2024 04:20:16 +0000 Subject: [PATCH] drm/amdgpu: Fix buffer size in gfx_v9_4_3_init_ cp_compute_microcode() and rlc_microcode() From Srinivasan Shanmugam 19bd9537b6bc1c882df25206c15917214d8e9460 in linux-6.6.y/6.6.33 acce6479e30f73ab0872e93a75aed1fb791d04ec in mainline linux --- sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c b/sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c index ef12ee577a3..d06192829e5 100644 --- a/sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c +++ b/sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c @@ -425,7 +425,7 @@ out: static int gfx_v9_4_3_init_microcode(struct amdgpu_device *adev) { - char ucode_prefix[30]; + char ucode_prefix[15]; int r; amdgpu_ucode_ip_version_decode(adev, GC_HWIP, ucode_prefix, sizeof(ucode_prefix)); -- 2.20.1