aboutsummaryrefslogtreecommitdiffstats
path: root/mm/migrate.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/migrate.c')
-rw-r--r--mm/migrate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index 6802a7a3dfec..f233519f0453 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -896,11 +896,10 @@ set_status:
896 pp->status = err; 896 pp->status = err;
897 } 897 }
898 898
899 err = 0;
899 if (!list_empty(&pagelist)) 900 if (!list_empty(&pagelist))
900 err = migrate_pages(&pagelist, new_page_node, 901 err = migrate_pages(&pagelist, new_page_node,
901 (unsigned long)pm); 902 (unsigned long)pm);
902 else
903 err = -ENOENT;
904 903
905 up_read(&mm->mmap_sem); 904 up_read(&mm->mmap_sem);
906 return err; 905 return err;