drm/amdgpu: Fix buffer size in gfx_v9_4_3_init_ cp_compute_microcode() and rlc_microc...
authorjsg <jsg@openbsd.org>
Sat, 15 Jun 2024 04:20:16 +0000 (04:20 +0000)
committerjsg <jsg@openbsd.org>
Sat, 15 Jun 2024 04:20:16 +0000 (04:20 +0000)
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

index ef12ee5..d061928 100644 (file)
@@ -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));