diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-12-04 09:59:47 -0500 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-12-04 09:59:47 -0500 |
| commit | 5cb2faa6ede7ada9cb2bffc832c4ce60f53d6834 (patch) | |
| tree | 7b72b66081d042a41dc822575503133364857ce2 /fs/exec.c | |
| parent | e0ee98513d1a2e24d2ddbdecf4216bcca29d1158 (diff) | |
| parent | 6060e8df517847bf445ebc61de7d4d9c7faae990 (diff) | |
Merge branch 'pending-misc' (early part) into devel
Diffstat (limited to 'fs/exec.c')
| -rw-r--r-- | fs/exec.c | 8 |
1 files changed, 3 insertions, 5 deletions
| @@ -624,10 +624,8 @@ int setup_arg_pages(struct linux_binprm *bprm, | |||
| 624 | /* Move stack pages down in memory. */ | 624 | /* Move stack pages down in memory. */ |
| 625 | if (stack_shift) { | 625 | if (stack_shift) { |
| 626 | ret = shift_arg_pages(vma, stack_shift); | 626 | ret = shift_arg_pages(vma, stack_shift); |
| 627 | if (ret) { | 627 | if (ret) |
| 628 | up_write(&mm->mmap_sem); | 628 | goto out_unlock; |
| 629 | return ret; | ||
| 630 | } | ||
| 631 | } | 629 | } |
| 632 | 630 | ||
| 633 | #ifdef CONFIG_STACK_GROWSUP | 631 | #ifdef CONFIG_STACK_GROWSUP |
| @@ -641,7 +639,7 @@ int setup_arg_pages(struct linux_binprm *bprm, | |||
| 641 | 639 | ||
| 642 | out_unlock: | 640 | out_unlock: |
| 643 | up_write(&mm->mmap_sem); | 641 | up_write(&mm->mmap_sem); |
| 644 | return 0; | 642 | return ret; |
| 645 | } | 643 | } |
| 646 | EXPORT_SYMBOL(setup_arg_pages); | 644 | EXPORT_SYMBOL(setup_arg_pages); |
| 647 | 645 | ||
