Module Name: src
Committed By: yamt
Date: Sat Feb 13 11:22:21 UTC 2010
Modified Files:
src/sys/kern: init_sysctl.c
Log Message:
sysctl_doeproc: don't follow a possibly stale pointer.
To generate a diff of this commit:
cvs rdiff -u -r1.172 -r1.173 src/sys/kern/init_sysctl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/init_sysctl.c
diff -u src/sys/kern/init_sysctl.c:1.172 src/sys/kern/init_sysctl.c:1.173
--- src/sys/kern/init_sysctl.c:1.172 Wed Jan 13 01:53:38 2010
+++ src/sys/kern/init_sysctl.c Sat Feb 13 11:22:21 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: init_sysctl.c,v 1.172 2010/01/13 01:53:38 pooka Exp $ */
+/* $NetBSD: init_sysctl.c,v 1.173 2010/02/13 11:22:21 yamt Exp $ */
/*-
* Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.172 2010/01/13 01:53:38 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.173 2010/02/13 11:22:21 yamt Exp $");
#include "opt_sysv.h"
#include "opt_compat_netbsd32.h"
@@ -2344,6 +2344,7 @@
LIST_REMOVE(marker, p_list);
} else {
rw_exit(&p->p_reflock);
+ next = LIST_NEXT(p, p_list);
}
}
mutex_exit(proc_lock);