diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-11-15 23:05:38 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-11-15 23:05:38 +0000 |
commit | 7f1a5362dc5a282ef1dd2c3f38a84014b99b67ef (patch) | |
tree | 6fc470b39d451df12b6ea5ec1d22dded62c1c896 /sys | |
parent | 05b176f21f31b30b008e771966abf3e3b1eac0b8 (diff) |
Save process context in ktrwrite(), as it may be needed for locking
purposes by the file system specific write routine. Fixes PR 4612.
Okay deraadt@.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_ktrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index dff4e8f3ccb..f876196c531 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_ktrace.c,v 1.36 2005/09/10 21:05:27 deraadt Exp $ */ +/* $OpenBSD: kern_ktrace.c,v 1.37 2005/11/15 23:05:37 pedro Exp $ */ /* $NetBSD: kern_ktrace.c,v 1.23 1996/02/09 18:59:36 christos Exp $ */ /* @@ -495,7 +495,7 @@ ktrwrite(p, kth) aiov[0].iov_len = sizeof(struct ktr_header); auio.uio_resid = sizeof(struct ktr_header); auio.uio_iovcnt = 1; - auio.uio_procp = (struct proc *)0; + auio.uio_procp = p; if (kth->ktr_len > 0) { auio.uio_iovcnt++; aiov[1].iov_base = kth->ktr_buf; |