diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-17 21:32:20 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-17 21:32:20 +0000 |
commit | 24f6b97d519de660a55ea0b03706100de2712479 (patch) | |
tree | 5936381fabbfdde613bc6391f66b68ecd1989a68 | |
parent | 966697849500753da27794127ef0cf7887ababd4 (diff) |
...and it needs a guard against NULL as well.
-rw-r--r-- | sys/arch/vax/vax/pmap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/vax/vax/pmap.c b/sys/arch/vax/vax/pmap.c index 68489fc870c..865588ef1f6 100644 --- a/sys/arch/vax/vax/pmap.c +++ b/sys/arch/vax/vax/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.66 2014/05/17 21:21:17 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.67 2014/05/17 21:32:19 miod Exp $ */ /* $NetBSD: pmap.c,v 1.74 1999/11/13 21:32:25 matt Exp $ */ /* * Copyright (c) 1994, 1998, 1999, 2003 Ludd, University of Lule}, Sweden. @@ -621,6 +621,8 @@ pmap_rmproc(struct pmap *pm) if (pr->ps_flags & (PS_SYSTEM | PS_EXITING)) continue; p = TAILQ_FIRST(&pr->ps_threads); + if (p == NULL) + continue; ppm = p->p_vmspace->vm_map.pmap; if (ppm == pm) /* Don't swap ourself */ continue; |