diff options
author | James Morris <jmorris@macbook.(none)> | 2009-12-03 01:33:40 -0500 |
---|---|---|
committer | James Morris <jmorris@macbook.(none)> | 2009-12-03 01:33:40 -0500 |
commit | c84d6efd363a3948eb32ec40d46bab6338580454 (patch) | |
tree | 3ba7ac46e6626fe8ac843834588609eb6ccee5c6 /fs/exec.c | |
parent | 7539cf4b92be4aecc573ea962135f246a7a33401 (diff) | |
parent | 22763c5cf3690a681551162c15d34d935308c8d7 (diff) |
Merge branch 'master' into next
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -623,10 +623,8 @@ int setup_arg_pages(struct linux_binprm *bprm, | |||
623 | /* Move stack pages down in memory. */ | 623 | /* Move stack pages down in memory. */ |
624 | if (stack_shift) { | 624 | if (stack_shift) { |
625 | ret = shift_arg_pages(vma, stack_shift); | 625 | ret = shift_arg_pages(vma, stack_shift); |
626 | if (ret) { | 626 | if (ret) |
627 | up_write(&mm->mmap_sem); | 627 | goto out_unlock; |
628 | return ret; | ||
629 | } | ||
630 | } | 628 | } |
631 | 629 | ||
632 | #ifdef CONFIG_STACK_GROWSUP | 630 | #ifdef CONFIG_STACK_GROWSUP |
@@ -640,7 +638,7 @@ int setup_arg_pages(struct linux_binprm *bprm, | |||
640 | 638 | ||
641 | out_unlock: | 639 | out_unlock: |
642 | up_write(&mm->mmap_sem); | 640 | up_write(&mm->mmap_sem); |
643 | return 0; | 641 | return ret; |
644 | } | 642 | } |
645 | EXPORT_SYMBOL(setup_arg_pages); | 643 | EXPORT_SYMBOL(setup_arg_pages); |
646 | 644 | ||