aboutsummaryrefslogtreecommitdiffstats
path: root/fs/binfmt_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r--fs/binfmt_misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index 330fd3fe8546..42e94b3ab7be 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -126,7 +126,9 @@ static int load_misc_binary(struct linux_binprm *bprm, struct pt_regs *regs)
126 goto _ret; 126 goto _ret;
127 127
128 if (!(fmt->flags & MISC_FMT_PRESERVE_ARGV0)) { 128 if (!(fmt->flags & MISC_FMT_PRESERVE_ARGV0)) {
129 remove_arg_zero(bprm); 129 retval = remove_arg_zero(bprm);
130 if (retval)
131 goto _ret;
130 } 132 }
131 133
132 if (fmt->flags & MISC_FMT_OPEN_BINARY) { 134 if (fmt->flags & MISC_FMT_OPEN_BINARY) {