]> git.baikalelectronics.ru Git - kernel.git/commit
Page migration: Do not accept invalid nodes in the target nodeset
authorChristoph Lameter <clameter@sgi.com>
Fri, 31 Aug 2007 07:12:08 +0000 (00:12 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 31 Aug 2007 08:42:23 +0000 (01:42 -0700)
commitf9a1122548ffaa73d88434487483e8a3c9e8119c
tree776a297ef8bd8a879da74290543907014abe6198
parent5c29d40ff1fbd4f14a13320344f1662096f76331
Page migration: Do not accept invalid nodes in the target nodeset

Page migration currently does not check if the target of the move contains
nodes that that are invalid (if root attempts to migrate pages)
and may try to allocate from invalid nodes if these are specified
leading to oopses.

Return -EINVAL if an offline node is specified.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Shaohua Li <shaohua.li@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c