diff --git a/vm/vm-object.c b/vm/vm-object.c index 726f673..382c9df 100644 --- a/vm/vm-object.c +++ b/vm/vm-object.c @@ -392,6 +392,7 @@ struct vm_page *vm_object_get_page( enum vm_object_flags flags, unsigned long *irq_flags) { + offset &= ~VM_PAGE_MASK; if (!vo->vo_ctrl && (flags & VMO_ALLOCATE_MISSING_PAGE)) { return alloc_page(vo, offset); }