Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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>

authored by

Colin Ian King and committed by
Ira Weiny
d1a599a8 11bdf36b

+1 -1
+1 -1
drivers/acpi/nfit/core.c
··· 2637 2637 if (ndr_desc->target_node == NUMA_NO_NODE) { 2638 2638 ndr_desc->target_node = phys_to_target_node(spa->address); 2639 2639 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); 2641 2641 } 2642 2642 2643 2643 /*