Jonathan Cameron a62d07e000 ACPI: Remove side effect of partly creating a node in acpi_get_node()
acpi_get_node() calls acpi_get_pxm() to evaluate the _PXM AML method
for entries found in DSDT/SSDT. ACPI 6.3 sec 6.2.14 states
"_PXM evaluates to an integer that identifies a device as belonging to
 a Proximity Domain defined in the System Resource Affinity Table (SRAT)."
Hence a _PXM method should not result in creation of a new NUMA node.

Before this patch, _PXM could result in partial instantiation of
NUMA node, missing elements such as zone lists.  A call to
devm_kzalloc(), for example, results in a NULL pointer dereference.

This patch therefore replaces the acpi_map_pxm_to_node() with a call
to pxm_to_node().

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Reviewed-by: Barry Song <song.bao.hua@hisilicon.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2020-09-24 12:57:38 +02:00
..
2019-06-23 09:23:33 +02:00
2020-07-09 14:09:28 +02:00
2020-07-09 14:09:28 +02:00
2020-07-09 14:09:28 +02:00
2020-06-30 19:32:45 +02:00
2019-11-13 11:12:08 +01:00
2020-05-01 16:28:59 +01:00
2020-06-04 12:59:11 -05:00
2020-08-05 10:51:40 -07:00
2020-05-14 13:49:33 +02:00
2020-06-02 13:25:52 -07:00
2020-07-09 14:09:28 +02:00