summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_physio.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-03-19 14:43:57 +0000
committerkib <kib@FreeBSD.org>2013-03-19 14:43:57 +0000
commite5332ab95582db8a564780b7e76fea59e30335a1 (patch)
treee048114eb9989a7f49051ebcc4027da6e0a571e4 /sys/kern/kern_physio.c
parent2ace051956132678a2275297973eb6d294b4c8d5 (diff)
downloadFreeBSD-src-e5332ab95582db8a564780b7e76fea59e30335a1.zip
FreeBSD-src-e5332ab95582db8a564780b7e76fea59e30335a1.tar.gz
Do not remap usermode pages into KVA for physio.
Sponsored by: The FreeBSD Foundation Tested by: pho
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r--sys/kern/kern_physio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c
index 34072f3..922ebb6 100644
--- a/sys/kern/kern_physio.c
+++ b/sys/kern/kern_physio.c
@@ -92,7 +92,7 @@ physio(struct cdev *dev, struct uio *uio, int ioflag)
bp->b_blkno = btodb(bp->b_offset);
if (uio->uio_segflg == UIO_USERSPACE)
- if (vmapbuf(bp) < 0) {
+ if (vmapbuf(bp, 0) < 0) {
error = EFAULT;
goto doerror;
}
OpenPOWER on IntegriCloud