diff options
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index e9b161bde95b..7a66ca25dc8a 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -781,7 +781,7 @@ static int do_move_pages(struct mm_struct *mm, struct page_to_node *pm, | |||
781 | 781 | ||
782 | err = -EFAULT; | 782 | err = -EFAULT; |
783 | vma = find_vma(mm, pp->addr); | 783 | vma = find_vma(mm, pp->addr); |
784 | if (!vma) | 784 | if (!vma || !vma_migratable(vma)) |
785 | goto set_status; | 785 | goto set_status; |
786 | 786 | ||
787 | page = follow_page(vma, pp->addr, FOLL_GET); | 787 | page = follow_page(vma, pp->addr, FOLL_GET); |