migration: migrate_vmas should check "vma"
authorDaisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Wed, 11 Feb 2009 21:04:18 +0000 (13:04 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Feb 2009 22:25:34 +0000 (14:25 -0800)
commit1001c9fb8721ab395e21f571ed2aaa523cdd1e29
treefc8835db2b1a5fb5b147af4025767d3393bb3a33
parent17c9d12e126cb0de8d535dc1908c4819d712bc68
migration: migrate_vmas should check "vma"

migrate_vmas() should check "vma" not "vma->vm_next" for for-loop condition.

Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/migrate.c