diff options
Diffstat (limited to 'arch/arm/mm/vmregion.c')
-rw-r--r-- | arch/arm/mm/vmregion.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mm/vmregion.c b/arch/arm/mm/vmregion.c index 19e09bdb1b8a..935993e1b1ef 100644 --- a/arch/arm/mm/vmregion.c +++ b/arch/arm/mm/vmregion.c | |||
@@ -35,7 +35,8 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | struct arm_vmregion * | 37 | struct arm_vmregion * |
38 | arm_vmregion_alloc(struct arm_vmregion_head *head, size_t size, gfp_t gfp) | 38 | arm_vmregion_alloc(struct arm_vmregion_head *head, size_t align, |
39 | size_t size, gfp_t gfp) | ||
39 | { | 40 | { |
40 | unsigned long addr = head->vm_start, end = head->vm_end - size; | 41 | unsigned long addr = head->vm_start, end = head->vm_end - size; |
41 | unsigned long flags; | 42 | unsigned long flags; |
@@ -58,7 +59,7 @@ arm_vmregion_alloc(struct arm_vmregion_head *head, size_t size, gfp_t gfp) | |||
58 | goto nospc; | 59 | goto nospc; |
59 | if ((addr + size) <= c->vm_start) | 60 | if ((addr + size) <= c->vm_start) |
60 | goto found; | 61 | goto found; |
61 | addr = c->vm_end; | 62 | addr = ALIGN(c->vm_end, align); |
62 | if (addr > end) | 63 | if (addr > end) |
63 | goto nospc; | 64 | goto nospc; |
64 | } | 65 | } |