Message ID | 20200818142430.1156547-2-Jonathan.Cameron@huawei.com |
---|---|
State | Accepted |
Commit | 8a3decac087aa897df5af04358c2089e52e70ac4 |
Headers | show |
Series | ACPI: Only create NUMA nodes from entries in SRAT or SRAT emulation. | expand |
diff --git a/drivers/acpi/numa/srat.c b/drivers/acpi/numa/srat.c index 15bbaab8500b..1fb486f46ee2 100644 --- a/drivers/acpi/numa/srat.c +++ b/drivers/acpi/numa/srat.c @@ -31,7 +31,7 @@ int acpi_numa __initdata; int pxm_to_node(int pxm) { - if (pxm < 0) + if (pxm < 0 || pxm >= MAX_PXM_DOMAINS || numa_off) return NUMA_NO_NODE; return pxm_to_node_map[pxm]; }