]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: Use PSP_FW_NAME_LEN instead of magic number
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Wed, 11 Nov 2020 22:55:24 +0000 (17:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Nov 2020 22:29:46 +0000 (17:29 -0500)
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 2b0a2b93994be0ca4a51d932b409dc222e69dd5d..74cbaf2126982ec36ab1ee2a4ce3a86095d93336 100644 (file)
@@ -2631,7 +2631,7 @@ int psp_init_ta_microcode(struct psp_context *psp,
                          const char *chip_name)
 {
        struct amdgpu_device *adev = psp->adev;
-       char fw_name[30];
+       char fw_name[PSP_FW_NAME_LEN];
        const struct ta_firmware_header_v2_0 *ta_hdr;
        int err = 0;
        int ta_index = 0;