diff options
author | Mark Brown <broonie@kernel.org> | 2015-01-16 22:07:04 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-16 22:07:04 +0000 |
commit | 041be7a254157109dec33e38ff9fe5c6fea60299 (patch) | |
tree | 833ec54b71c4656065a3d1c9abf12d376caa4d19 /mm/memory.c | |
parent | 654cbb2fa5747bb12bd8f179795e0559b7040a9b (diff) | |
parent | c293f79246d7cdaf6e75b40aa1f957eb8d195835 (diff) |
Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-rt
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c index af9922d54478..59c7fb52c271 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3202,7 +3202,7 @@ static inline int check_stack_guard_page(struct vm_area_struct *vma, unsigned lo if (prev && prev->vm_end == address) return prev->vm_flags & VM_GROWSDOWN ? 0 : -ENOMEM; - expand_downwards(vma, address - PAGE_SIZE); + return expand_downwards(vma, address - PAGE_SIZE); } if ((vma->vm_flags & VM_GROWSUP) && address + PAGE_SIZE == vma->vm_end) { struct vm_area_struct *next = vma->vm_next; @@ -3211,7 +3211,7 @@ static inline int check_stack_guard_page(struct vm_area_struct *vma, unsigned lo if (next && next->vm_start == address + PAGE_SIZE) return next->vm_flags & VM_GROWSUP ? 0 : -ENOMEM; - expand_upwards(vma, address + PAGE_SIZE); + return expand_upwards(vma, address + PAGE_SIZE); } return 0; } |