Skip to content

Commit d1a599a

Browse files
ColinIanKingweiny2
authored andcommitted
ACPI: NFIT: Fix incorrect ndr_desc being reportedin dev_err message
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: f060db9 ("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>
1 parent 11bdf36 commit d1a599a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/nfit/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2637,7 +2637,7 @@ static int acpi_nfit_register_region(struct acpi_nfit_desc *acpi_desc,
26372637
if (ndr_desc->target_node == NUMA_NO_NODE) {
26382638
ndr_desc->target_node = phys_to_target_node(spa->address);
26392639
dev_info(acpi_desc->dev, "changing target node from %d to %d for nfit region [%pa-%pa]",
2640-
NUMA_NO_NODE, ndr_desc->numa_node, &res.start, &res.end);
2640+
NUMA_NO_NODE, ndr_desc->target_node, &res.start, &res.end);
26412641
}
26422642

26432643
/*

0 commit comments

Comments
 (0)