Commit d1a599a8 authored by Colin Ian King's avatar Colin Ian King Committed by Ira Weiny
Browse files

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: f060db99 ("ACPI: NFIT: Use fallback node id when numa info in NFIT table is incorrect")
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
parent 11bdf36b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2637,7 +2637,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);
	}

	/*