summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2004-06-19 14:29:21 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2004-06-19 14:29:21 +0000
commitfd4630d0e5b7fc5b375c477f7d971a0d82fc7821 (patch)
tree8b6d837403513f10f59f09bd995ff1c69e2b48f9 /sys/dev
parent4fa8675d8ee4c3fc5147a9af8e0de393c1486f79 (diff)
save curproc for further reference, otherwise we may end up in lockmgr()
with no process context. ok miod@. closes pr 3214.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/vnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 03739dad91a..91b0023db0d 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.46 2004/05/22 18:26:52 otto Exp $ */
+/* $OpenBSD: vnd.c,v 1.47 2004/06/19 14:29:20 pedro Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -470,7 +470,7 @@ vndstrategy(bp)
auio.uio_iovcnt = 1;
auio.uio_offset = dbtob((off_t)(bp->b_blkno + off));
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = NULL;
+ auio.uio_procp = p;
vn_lock(vnd->sc_vp, LK_EXCLUSIVE | LK_RETRY, p);
vnd->sc_flags |= VNF_BUSY;