aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
authorJames Morris <jmorris@macbook.(none)>2009-12-03 01:33:40 -0500
committerJames Morris <jmorris@macbook.(none)>2009-12-03 01:33:40 -0500
commitc84d6efd363a3948eb32ec40d46bab6338580454 (patch)
tree3ba7ac46e6626fe8ac843834588609eb6ccee5c6 /fs/exec.c
parent7539cf4b92be4aecc573ea962135f246a7a33401 (diff)
parent22763c5cf3690a681551162c15d34d935308c8d7 (diff)
Merge branch 'master' into next
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/exec.c b/fs/exec.c
index d164342c2b69..c0c636e34f60 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -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
641out_unlock: 639out_unlock:
642 up_write(&mm->mmap_sem); 640 up_write(&mm->mmap_sem);
643 return 0; 641 return ret;
644} 642}
645EXPORT_SYMBOL(setup_arg_pages); 643EXPORT_SYMBOL(setup_arg_pages);
646 644