diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/task_mmu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 7c708a418acc..2e7addfd9803 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c | |||
@@ -182,7 +182,8 @@ static void m_stop(struct seq_file *m, void *v) | |||
182 | struct proc_maps_private *priv = m->private; | 182 | struct proc_maps_private *priv = m->private; |
183 | struct vm_area_struct *vma = v; | 183 | struct vm_area_struct *vma = v; |
184 | 184 | ||
185 | vma_stop(priv, vma); | 185 | if (!IS_ERR(vma)) |
186 | vma_stop(priv, vma); | ||
186 | if (priv->task) | 187 | if (priv->task) |
187 | put_task_struct(priv->task); | 188 | put_task_struct(priv->task); |
188 | } | 189 | } |