aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/task_mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/task_mmu.c')
-rw-r--r--fs/proc/task_mmu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index f277c4a111cb..da4409ebb59c 100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
@@ -138,8 +138,10 @@ static void *m_start(struct seq_file *m, loff_t *pos)
138 vma = NULL; 138 vma = NULL;
139 if ((unsigned long)l < mm->map_count) { 139 if ((unsigned long)l < mm->map_count) {
140 vma = mm->mmap; 140 vma = mm->mmap;
141 while (l-- && vma) 141 while (l-- && vma) {
142 vma = vma->vm_next; 142 vma = vma->vm_next;
143 cond_resched();
144 }
143 goto out; 145 goto out;
144 } 146 }
145 147