From: Yasunori Goto Date: Tue, 16 Oct 2007 08:25:40 +0000 (-0700) Subject: Fix panic of cpu online with memory less node X-Git-Tag: v2.6.24-rc1~1148 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58c0a4a7864b2dad6da4090813322fcd29a11c92;p=pandora-kernel.git Fix panic of cpu online with memory less node When a cpu is onlined on memory-less-node box, kernel panics due to touch NULL pointer of pgdat->kswapd. Current kswapd runs only nodes which have memory. So, calling of set_cpus_allowed() is not necessary for memory-less node. This is fix for it. Signed-off-by: Yasunori Goto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed