diff options
author | 2004-06-19 14:29:20 +0000 | |
---|---|---|
committer | 2004-06-19 14:29:20 +0000 | |
commit | e1390a91c2387df3e5a998e79553fd9763979617 (patch) | |
tree | e5357a7e6867c004e4fbd3d07c1704199ffaf141 | |
parent | avoid a null pointer dereference if the .DEFAULT target has no commands; (diff) | |
download | wireguard-openbsd-e1390a91c2387df3e5a998e79553fd9763979617.tar.xz wireguard-openbsd-e1390a91c2387df3e5a998e79553fd9763979617.zip |
save curproc for further reference, otherwise we may end up in lockmgr()
with no process context. ok miod@. closes pr 3214.
-rw-r--r-- | sys/dev/vnd.c | 4 |
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; |