Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6be954d1 authored by David John's avatar David John Committed by Jesse Barnes
Browse files

PCI: Check the node argument passed to cpumask_of_node



Commit e0cd5160 "PCI: derive nearby CPUs from device's instead of bus'
NUMA information" causes an null pointer dereference when reading from
the sysfs attributes local_cpu* on Intel machines with no ACPI NUMA
proximity info, since dev->numa_node gets set to -1 for all PCI devices,
which then gets passed to cpumask_of_node.

Add a check to prevent this.

Signed-off-by: default avatarDavid John <davidjon@xenontk.org>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 46256f83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment