28d8b8dc2058b10e7d0be01a9b2be5 parent 46256f83d0d066f99ffde547f27473dfd2a78009 author David John 1262617137 +0530 committer Jesse Barnes 1262646656 -0800 PCI: Check the node argument passed to cpumask_of_node Commit e0cd516 "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: David John Signed-off-by: Jesse Barnes