diff options
author | kib <kib@FreeBSD.org> | 2013-03-19 14:43:57 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-03-19 14:43:57 +0000 |
commit | e5332ab95582db8a564780b7e76fea59e30335a1 (patch) | |
tree | e048114eb9989a7f49051ebcc4027da6e0a571e4 /sys/kern/kern_physio.c | |
parent | 2ace051956132678a2275297973eb6d294b4c8d5 (diff) | |
download | FreeBSD-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.c | 2 |
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; } |