summaryrefslogtreecommitdiff
path: root/sys/kern/kern_physio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r--sys/kern/kern_physio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c
index bcb84149439..338a4fba936 100644
--- a/sys/kern/kern_physio.c
+++ b/sys/kern/kern_physio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_physio.c,v 1.41 2014/09/14 14:17:25 jsg Exp $ */
+/* $OpenBSD: kern_physio.c,v 1.42 2014/11/16 12:31:00 deraadt Exp $ */
/* $NetBSD: kern_physio.c,v 1.28 1997/05/19 10:43:28 pk Exp $ */
/*-
@@ -139,7 +139,7 @@ physio(void (*strategy)(struct buf *), dev_t dev, int flags,
*/
error = uvm_vslock_device(p, iovp->iov_base, todo,
(flags & B_READ) ?
- VM_PROT_READ | VM_PROT_WRITE : VM_PROT_READ, &map);
+ PROT_READ | PROT_WRITE : PROT_READ, &map);
if (error)
goto done;
if (map) {