diff options
author | 2014-05-17 21:21:17 +0000 | |
---|---|---|
committer | 2014-05-17 21:21:17 +0000 | |
commit | ce11fce87f5a425d5409d9c4bd4c6624177b3ba8 (patch) | |
tree | 0dc5b715c2c1b1c48a1fb8a3c07110aaa42fd642 | |
parent | remove unused variable (diff) | |
download | wireguard-openbsd-ce11fce87f5a425d5409d9c4bd4c6624177b3ba8.tar.xz wireguard-openbsd-ce11fce87f5a425d5409d9c4bd4c6624177b3ba8.zip |
Fix previous commit by making sure we are not dereferencing uninitialized
pointers.
-rw-r--r-- | sys/arch/vax/vax/pmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/vax/vax/pmap.c b/sys/arch/vax/vax/pmap.c index 2ce070f512e..68489fc870c 100644 --- a/sys/arch/vax/vax/pmap.c +++ b/sys/arch/vax/vax/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.65 2014/05/15 03:52:25 guenther Exp $ */ +/* $OpenBSD: pmap.c,v 1.66 2014/05/17 21:21:17 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. @@ -620,6 +620,7 @@ pmap_rmproc(struct pmap *pm) LIST_FOREACH(pr, &allprocess, ps_list) { if (pr->ps_flags & (PS_SYSTEM | PS_EXITING)) continue; + p = TAILQ_FIRST(&pr->ps_threads); ppm = p->p_vmspace->vm_map.pmap; if (ppm == pm) /* Don't swap ourself */ continue; |