]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: fix overflow in find_zone_movable_pfns_for_nodes()
authorXishi Qiu <qiuxishi@huawei.com>
Wed, 21 Oct 2015 22:03:10 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:10 +0000 (09:03 +1100)
commita8686c2b142e01e5af92af68f715a4911efe3a9b
treec536114c908d48c26a0d59429d0e278b7526a8d4
parent6fb33e7e5de24f581fc268f7b99d2be4d431bbd7
mm: fix overflow in find_zone_movable_pfns_for_nodes()

If the user set "movablecore=xx" to a large number, corepages will
overflow.  Fix the problem.

Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Reviewed-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Acked-by: Tang Chen <tangchen@cn.fujitsu.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Tang Chen <tangchen@cn.fujitsu.com>
Cc: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c