summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-07-20 00:03:38 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-07-20 00:03:38 +0000
commitb5381ebb20fd9701a5a25f16204aeef0d86b2e3a (patch)
treec6a5b628fabd4f9198d270755834f51ca1e2462e /sys/dev
parent6f5c1c6119c003841ee5c6b42b37249879aefcf6 (diff)
comment clarification. niels ok
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/systrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c
index 479d09a1966..eaf2e5a122d 100644
--- a/sys/dev/systrace.c
+++ b/sys/dev/systrace.c
@@ -671,8 +671,9 @@ systrace_redirect(int code, struct proc *p, void *v, register_t *retval)
/* Puts the current process to sleep, return unlocked */
error = systrace_msg_ask(fst, strp, code, callp->sy_argsize, v);
- /* We might have detached by now for some reason */
+ /* lock has been released in systrace_msg_ask() */
fst = NULL;
+ /* We might have detached by now for some reason */
if (!error && (strp = p->p_systrace) != NULL) {
/* XXX - do I need to lock here? */
if (strp->answer == SYSTR_POLICY_NEVER) {