]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] fix mempolicy's check on a system with memory-less-node
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tue, 20 Feb 2007 21:57:49 +0000 (13:57 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 21 Feb 2007 01:10:13 +0000 (17:10 -0800)
commit8af5e2eb3cc4450ffba9496c875beac41bf4f4f8
treed15c56e8add1b53d5ed4d5dcb5d1f016d8f2b1c9
parentb446b60e4eb5e5457120c4728ada871b1209c1d0
[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 <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Andi Kleen <ak@suse.de>
Cc: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c