diff options
Diffstat (limited to 'vm/vm_user.c')
-rw-r--r-- | vm/vm_user.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vm/vm_user.c b/vm/vm_user.c index ad1fa75d..3ef64dfc 100644 --- a/vm/vm_user.c +++ b/vm/vm_user.c @@ -590,6 +590,10 @@ kern_return_t vm_allocate_contiguous( if (palign == 0) palign = PAGE_SIZE; + /* FIXME: Allows some small alignments less than page size */ + if ((palign < PAGE_SIZE) && (PAGE_SIZE % palign == 0)) + palign = PAGE_SIZE; + /* FIXME */ if (palign != PAGE_SIZE) return KERN_INVALID_ARGUMENT; |