X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fproc%2Ftask_mmu.c;h=2e7addfd9803559ca03a2527aaab161006e3b482;hb=899631c7916b231ba6509c90dbc33221e9194029;hp=7c708a418acc38412f4a4d77626be3dc4b39e03f;hpb=40471856f2e38e9bfa8d605295e8234421110dd6;p=firefly-linux-kernel-4.4.55.git 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) struct proc_maps_private *priv = m->private; struct vm_area_struct *vma = v; - vma_stop(priv, vma); + if (!IS_ERR(vma)) + vma_stop(priv, vma); if (priv->task) put_task_struct(priv->task); }