VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Ollie Wild <aaw@google.com> 2007-07-19 01:48:16 -0700 committer: Linus Torvalds <torvalds@woody.linux-foundation.org> 2007-07-19 10:04:45 -0700 commit: b6a2fea39318e43fee84fa7b0b90d68bed92d2ba parent: bdf4c48af20a3b0f01671799ace345e3d49576da
Commit Summary:
mm: variable length argument support
Diffstat:
1 file changed, 3 insertions, 1 deletion
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)
 	 * This is done in reverse order, because of how the
 	 * user environment and arguments are stored.
 	 */
-	remove_arg_zero(bprm);
+	retval = remove_arg_zero(bprm);
+	if (retval)
+		return retval;
 	retval = copy_strings_kernel(1, &bprm->interp, bprm);
 	if (retval < 0) return retval; 
 	bprm->argc++;