From: KAMEZAWA Hiroyuki Date: Tue, 20 Feb 2007 21:57:49 +0000 (-0800) Subject: [PATCH] fix mempolicy's check on a system with memory-less-node X-Git-Tag: v2.6.21-rc1~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8af5e2eb3cc4450ffba9496c875beac41bf4f4f8;p=pandora-kernel.git [PATCH] fix mempolicy's check on a system with memory-less-node bind_zonelist() can create zero-length zonelist if there is a memory-less-node. This patch checks the length of zonelist. If length is 0, returns -EINVAL. tested on ia64/NUMA with memory-less-node. Signed-off-by: KAMEZAWA Hiroyuki Acked-by: Andi Kleen Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed