ACPI: NUMA: Fix the logic of getting the fake_pxm value
authorYuntao Wang <ytcoode@gmail.com>
Wed, 6 Dec 2023 10:43:18 +0000 (18:43 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 Dec 2023 19:36:19 +0000 (20:36 +0100)
commite3f577830ce216b0ca21d4750cbbd64cfc21efff
tree9e8c0b138195e362fd0dd286b32f4ee300a9b8f9
parentec0f96260737ae23dcad57463fdc32eba025b11d
ACPI: NUMA: Fix the logic of getting the fake_pxm value

The for loop does not iterate over the last element of the node_to_pxm_map
array. This could lead to a conflict between the final fake_pxm value and
the existing pxm values. That is, the final fake_pxm value can not be
guaranteed to be an unused pxm value.

While at it, fix up white space in slit_valid().

Signed-off-by: Yuntao Wang <ytcoode@gmail.com>
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/numa/srat.c