summaryrefslogtreecommitdiffstats
path: root/sys/vm/phys_pager.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/phys_pager.c')
-rw-r--r--sys/vm/phys_pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/phys_pager.c b/sys/vm/phys_pager.c
index f2980db..153dd2f 100644
--- a/sys/vm/phys_pager.c
+++ b/sys/vm/phys_pager.c
@@ -83,7 +83,7 @@ phys_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
* Allocate object and associate it with the pager.
*/
object = vm_object_allocate(OBJT_PHYS,
- OFF_TO_IDX(foff + size));
+ OFF_TO_IDX(foff + PAGE_MASK + size));
object->handle = handle;
TAILQ_INSERT_TAIL(&phys_pager_object_list, object,
pager_object_list);
OpenPOWER on IntegriCloud