diff --git a/mm/migrate.c b/mm/migrate.c index ba2453f9483dfe4b03b3df1c089607da36ebb60c..b4979d423d2be5b7885f4cd7e24f45bdf7aa27ca 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -952,7 +952,8 @@ asmlinkage long sys_move_pages(pid_t pid, unsigned long nr_pages, goto out; pm[i].node = node; - } + } else + pm[i].node = 0; /* anything to not match MAX_NUMNODES */ } /* End marker */ pm[nr_pages].node = MAX_NUMNODES;