X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fbinfmt_misc.c;h=42e94b3ab7bebe362c50e6efed92d4298b959162;hb=09c7d8293a2d1317d16ef4ddb9f6dd2553d0694e;hp=72d0b412c376641428244fac1acab7684b7cc748;hpb=2ecf042ef530dd0943e41d84b6344f507941af3e;p=pandora-kernel.git diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 72d0b412c376..42e94b3ab7be 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c @@ -18,7 +18,7 @@ #include #include - +#include #include #include #include @@ -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) {