X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fbinfmt_misc.c;h=42e94b3ab7bebe362c50e6efed92d4298b959162;hb=697f41610863c9264a7ae26dac9a387c9dda8c84;hp=330fd3fe8546570732da73f6957f31dc5778eb47;hpb=8aee74c8ee875448cc6d1cf995c9469eb60ae515;p=linux-2.6 diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 330fd3fe85..42e94b3ab7 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) goto _ret; if (!(fmt->flags & MISC_FMT_PRESERVE_ARGV0)) { - remove_arg_zero(bprm); + retval = remove_arg_zero(bprm); + if (retval) + goto _ret; } if (fmt->flags & MISC_FMT_OPEN_BINARY) {