diff options
Diffstat (limited to 'fs/binfmt_script.c')
-rw-r--r-- | fs/binfmt_script.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/binfmt_script.c b/fs/binfmt_script.c index 304c88544d89..4d0e0f6d3273 100644 --- a/fs/binfmt_script.c +++ b/fs/binfmt_script.c | |||
@@ -67,7 +67,9 @@ static int load_script(struct linux_binprm *bprm,struct pt_regs *regs) | |||
67 | * This is done in reverse order, because of how the | 67 | * This is done in reverse order, because of how the |
68 | * user environment and arguments are stored. | 68 | * user environment and arguments are stored. |
69 | */ | 69 | */ |
70 | remove_arg_zero(bprm); | 70 | retval = remove_arg_zero(bprm); |
71 | if (retval) | ||
72 | return retval; | ||
71 | retval = copy_strings_kernel(1, &bprm->interp, bprm); | 73 | retval = copy_strings_kernel(1, &bprm->interp, bprm); |
72 | if (retval < 0) return retval; | 74 | if (retval < 0) return retval; |
73 | bprm->argc++; | 75 | bprm->argc++; |