summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-12-10 17:37:52 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-12-10 17:37:52 +0000
commite86732160464c1736621edc0f8d6a4f07e85cd0f (patch)
treee2a96d57fbf18a159941f941e3a435b5975b8d45 /sys
parentd0310fb7f0b25af8e83adbca22ce817e002b62f9 (diff)
No need for uvm_useracc here now. vslock catches those problems.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_physio.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c
index bd83546c9dd..dc1b78fb8e2 100644
--- a/sys/kern/kern_physio.c
+++ b/sys/kern/kern_physio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_physio.c,v 1.17 2001/11/28 13:47:39 art Exp $ */
+/* $OpenBSD: kern_physio.c,v 1.18 2001/12/10 17:37:51 art Exp $ */
/* $NetBSD: kern_physio.c,v 1.28 1997/05/19 10:43:28 pk Exp $ */
/*-
@@ -87,21 +87,6 @@ physio(strategy, bp, dev, flags, minphys, uio)
error = 0;
flags &= B_READ | B_WRITE;
- /*
- * [check user read/write access to the data buffer]
- *
- * Check each iov one by one. Note that we know if we're reading or
- * writing, so we ignore the uio's rw parameter. Also note that if
- * we're doing a read, that's a *write* to user-space.
- */
- if (uio->uio_segflg == UIO_USERSPACE)
- for (i = 0; i < uio->uio_iovcnt; i++)
- /* XXX - obsolete now that vslock can error? */
- if (!uvm_useracc(uio->uio_iov[i].iov_base,
- uio->uio_iov[i].iov_len,
- (flags == B_READ) ? B_WRITE : B_READ))
- return (EFAULT);
-
/* Make sure we have a buffer, creating one if necessary. */
if ((nobuf = (bp == NULL)) != 0)
bp = getphysbuf();