drm/radeon/ni: Fix wrong firmware size logging in ni_init_microcode()
authorjsg <jsg@openbsd.org>
Wed, 27 Mar 2024 04:44:37 +0000 (04:44 +0000)
committerjsg <jsg@openbsd.org>
Wed, 27 Mar 2024 04:44:37 +0000 (04:44 +0000)
From Nikita Zhandarovich
6fc5fb8ebef803285a8f71e298e8a658d836a492 in linux-6.6.y/6.6.23
c4891d979c7668b195a0a75787967ec95a24ecef in mainline linux

sys/dev/pci/drm/radeon/ni.c

index 927e5f4..3e48cbb 100644 (file)
@@ -813,7 +813,7 @@ int ni_init_microcode(struct radeon_device *rdev)
                        err = 0;
                } else if (rdev->smc_fw->size != smc_req_size) {
                        pr_err("ni_mc: Bogus length %zu in firmware \"%s\"\n",
-                              rdev->mc_fw->size, fw_name);
+                              rdev->smc_fw->size, fw_name);
                        err = -EINVAL;
                }
        }