diff options
Diffstat (limited to 'mm/ptdump.c')
-rw-r--r-- | mm/ptdump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/ptdump.c b/mm/ptdump.c index 106e1d66e9f9..3e78bf33da42 100644 --- a/mm/ptdump.c +++ b/mm/ptdump.c @@ -153,6 +153,7 @@ void ptdump_walk_pgd(struct ptdump_state *st, struct mm_struct *mm, pgd_t *pgd) { const struct ptdump_range *range = st->range; + get_online_mems(); mmap_write_lock(mm); while (range->start != range->end) { walk_page_range_novma(mm, range->start, range->end, @@ -160,6 +161,7 @@ void ptdump_walk_pgd(struct ptdump_state *st, struct mm_struct *mm, pgd_t *pgd) range++; } mmap_write_unlock(mm); + put_online_mems(); /* Flush out the last page */ st->note_page(st, 0, -1, 0); |