summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_aio.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/vfs_aio.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/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index cafe440..4facd97 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -1323,7 +1323,7 @@ aio_qphysio(struct proc *p, struct aiocblist *aiocbe)
/*
* Bring buffer into kernel space.
*/
- if (vmapbuf(bp) < 0) {
+ if (vmapbuf(bp, 1) < 0) {
error = EFAULT;
goto doerror;
}
OpenPOWER on IntegriCloud