summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-05-18 13:00:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-05-18 13:00:13 +0000
commit6a45967d77df25e9307370feaee2990db3a1dd28 (patch)
tree28a9e4f05e6f8ceb7f9abb5a4be7f78fac141667 /sys
parent6cb99ccdfa11f2b67cb8dec736a19f6faec9fd9e (diff)
null uio_procp
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/vnd.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 2c6cd0e20c9..98edf4e2490 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.12 1997/05/17 20:09:46 millert Exp $ */
+/* $OpenBSD: vnd.c,v 1.13 1997/05/18 13:00:12 deraadt Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -422,14 +422,7 @@ vndstrategy(bp)
auio.uio_iovcnt = 1;
auio.uio_offset = dbtob(bp->b_blkno);
auio.uio_segflg = UIO_SYSSPACE;
-
- /*
- * It seems we can get NULL proc pointers in bp->b_proc
- * that causes a quota check in VOP_WRITE to fault.
- * In that case chalk it up on curproc instead, for
- * safety.
- */
- auio.uio_procp = (bp->b_proc ? bp->b_proc : curproc);
+ auio.uio_procp = NULL;
VOP_LOCK(vnd->sc_vp);
vnd->sc_flags |= VNF_BUSY;