diff options
| author | John Dyson <dyson@FreeBSD.org> | 1996-10-24 02:47:05 +0000 |
|---|---|---|
| committer | John Dyson <dyson@FreeBSD.org> | 1996-10-24 02:47:05 +0000 |
| commit | c864a7c0a97310cb8d4e7e4ce871cb2843a52a16 (patch) | |
| tree | bad167e96d54ba4073048bd7957cba70326c5f0e /sys/miscfs/procfs | |
| parent | bf2226a7dbcf4afca34806560dc4274d1c959ddc (diff) | |
Notes
Diffstat (limited to 'sys/miscfs/procfs')
| -rw-r--r-- | sys/miscfs/procfs/procfs_mem.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/miscfs/procfs/procfs_mem.c b/sys/miscfs/procfs/procfs_mem.c index b82d856afb0c..6481235812d7 100644 --- a/sys/miscfs/procfs/procfs_mem.c +++ b/sys/miscfs/procfs/procfs_mem.c @@ -37,7 +37,7 @@ * * @(#)procfs_mem.c 8.4 (Berkeley) 1/21/94 * - * $Id: procfs_mem.c,v 1.18 1996/06/11 23:52:27 dyson Exp $ + * $Id: procfs_mem.c,v 1.19 1996/07/02 01:40:52 dyson Exp $ */ /* @@ -222,13 +222,10 @@ procfs_rwmem(p, uio) * Fault the page in... */ if (writing && object->backing_object) { - vm_page_t m; - m = vm_page_lookup(object, pindex); - if (m == 0) { - error = vm_fault(map, pageno, - VM_PROT_WRITE, FALSE); + error = vm_fault(map, pageno, + VM_PROT_WRITE, FALSE); + if (error) break; - } } /* Find space in kernel_map for the page we're interested in */ |
