summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs_mem.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-11-09 01:44:28 +0000
committeralc <alc@FreeBSD.org>1999-11-09 01:44:28 +0000
commit49c5eada3d9e771ead85ec20a2ccdae9982417af (patch)
treebfa7411e917dde2dc2cafd7795c0248368e9cbb2 /sys/fs/procfs/procfs_mem.c
parent92e43b67476e9898be13ca7cf6d1a35f5f5b1721 (diff)
downloadFreeBSD-src-49c5eada3d9e771ead85ec20a2ccdae9982417af.zip
FreeBSD-src-49c5eada3d9e771ead85ec20a2ccdae9982417af.tar.gz
Passing "0" or "FALSE" as the fourth argument to vm_fault is wrong. It
should be "VM_FAULT_NORMAL".
Diffstat (limited to 'sys/fs/procfs/procfs_mem.c')
-rw-r--r--sys/fs/procfs/procfs_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs_mem.c b/sys/fs/procfs/procfs_mem.c
index df97979..963fb3a 100644
--- a/sys/fs/procfs/procfs_mem.c
+++ b/sys/fs/procfs/procfs_mem.c
@@ -172,7 +172,7 @@ procfs_rwmem(curp, p, uio)
/*
* Fault the page on behalf of the process
*/
- error = vm_fault(map, pageno, reqprot, FALSE);
+ error = vm_fault(map, pageno, reqprot, VM_FAULT_NORMAL);
if (error) {
error = EFAULT;
break;
OpenPOWER on IntegriCloud