projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ext4: fixes block group number being set to a negative value
[powerpc.git]
/
fs
/
binfmt_script.c
diff --git
a/fs/binfmt_script.c
b/fs/binfmt_script.c
index
304c885
..
ab33939
100644
(file)
--- a/
fs/binfmt_script.c
+++ b/
fs/binfmt_script.c
@@
-1,7
+1,7
@@
/*
* linux/fs/binfmt_script.c
*
/*
* linux/fs/binfmt_script.c
*
- * Copyright (C) 1996 Martin von L
ö
wis
+ * Copyright (C) 1996 Martin von L
ö
wis
* original #!-checking implemented by tytso.
*/
* original #!-checking implemented by tytso.
*/
@@
-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.
*/
* 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++;
retval = copy_strings_kernel(1, &bprm->interp, bprm);
if (retval < 0) return retval;
bprm->argc++;