From: David John Date: Mon, 4 Jan 2010 14:58:57 +0000 (+0530) Subject: PCI: Check the node argument passed to cpumask_of_node X-Git-Tag: v2.6.33-rc4~71^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6be954d1f91b81ca85c74792b13654069278c577;p=pandora-kernel.git 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 --- Reading git-diff-tree failed