From: Rafael J. Wysocki Date: Tue, 13 Aug 2013 00:39:30 +0000 (+0200) Subject: driver core / cpu: Check if NUMA node is valid before bringing CPU up X-Git-Tag: v3.12-rc1~184^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7991b0b720efa5e0a590f6359d36e09bd187b76;p=pandora-kernel.git driver core / cpu: Check if NUMA node is valid before bringing CPU up There is a potential race condition between cpu_subsys_online() and either acpi_processor_remove() or remove_memory() that execute try_offline_node(). Namely, it is possible that cpu_subsys_online() will run right after the CPUs NUMA node has been put offline and cpu_to_node() executed by it will return NUMA_NO_NODE (-1). In that case the CPU is gone and it doesn't make sense to call cpu_up() for it, so make cpu_subsys_online() return -ENODEV then. Signed-off-by: Rafael J. Wysocki Acked-by: Toshi Kani Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed