Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern comment clarification. from openbsd
details: https://anonhg.NetBSD.org/src/rev/dde7615365db
branches: trunk
changeset: 534192:dde7615365db
user: itojun <itojun%NetBSD.org@localhost>
date: Sat Jul 20 00:03:08 2002 +0000
description:
comment clarification. from openbsd
diffstat:
sys/kern/kern_systrace.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 58048181c5f8 -r dde7615365db sys/kern/kern_systrace.c
--- a/sys/kern/kern_systrace.c Fri Jul 19 23:55:01 2002 +0000
+++ b/sys/kern/kern_systrace.c Sat Jul 20 00:03:08 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_systrace.c,v 1.8 2002/07/19 23:55:01 itojun Exp $ */
+/* $NetBSD: kern_systrace.c,v 1.9 2002/07/20 00:03:08 itojun Exp $ */
/*
* Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_systrace.c,v 1.8 2002/07/19 23:55:01 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_systrace.c,v 1.9 2002/07/20 00:03:08 itojun Exp $");
#include "opt_systrace.h"
@@ -684,8 +684,9 @@
error = systrace_msg_ask(fst, strp, code, callp->sy_argsize, v);
DPRINTF(("policy permit, syscall %d error %d\n", code, error));
+ /* lock has been released in systrace_msg_ask() */
+ fst = NULL;
/* We might have detached by now for some reason */
- fst = NULL;
if (!error && (strp = p->p_systrace) != NULL) {
/* XXX - do I need to lock here? */
if (strp->answer == SYSTR_POLICY_NEVER)
Home |
Main Index |
Thread Index |
Old Index