]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ACPI: NFIT: Fix incorrect ndr_desc being reportedin dev_err message
authorColin Ian King <colin.i.king@gmail.com>
Tue, 2 Sep 2025 11:45:18 +0000 (12:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 09:56:34 +0000 (11:56 +0200)
[ Upstream commit d1a599a8136b16522b5afebd122395524496d549 ]

There appears to be a cut-n-paste error with the incorrect field
ndr_desc->numa_node being reported for the target node. Fix this by
using ndr_desc->target_node instead.

Fixes: f060db99374e ("ACPI: NFIT: Use fallback node id when numa info in NFIT table is incorrect")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/nfit/core.c

index 129c503b0951e2c2ccd08bf5a9ce6e7c00a20378..78c9f56b4ba341ce758ffe0603713232cd13e65a 100644 (file)
@@ -2643,7 +2643,7 @@ static int acpi_nfit_register_region(struct acpi_nfit_desc *acpi_desc,
        if (ndr_desc->target_node == NUMA_NO_NODE) {
                ndr_desc->target_node = phys_to_target_node(spa->address);
                dev_info(acpi_desc->dev, "changing target node from %d to %d for nfit region [%pa-%pa]",
-                       NUMA_NO_NODE, ndr_desc->numa_node, &res.start, &res.end);
+                       NUMA_NO_NODE, ndr_desc->target_node, &res.start, &res.end);
        }
 
        /*