diff options
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r-- | fs/binfmt_misc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 9be335fb8a7c..0c8869fdd14e 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c | |||
@@ -172,7 +172,10 @@ static int load_misc_binary(struct linux_binprm *bprm) | |||
172 | goto _error; | 172 | goto _error; |
173 | bprm->argc ++; | 173 | bprm->argc ++; |
174 | 174 | ||
175 | bprm->interp = iname; /* for binfmt_script */ | 175 | /* Update interp in case binfmt_script needs it. */ |
176 | retval = bprm_change_interp(iname, bprm); | ||
177 | if (retval < 0) | ||
178 | goto _error; | ||
176 | 179 | ||
177 | interp_file = open_exec (iname); | 180 | interp_file = open_exec (iname); |
178 | retval = PTR_ERR (interp_file); | 181 | retval = PTR_ERR (interp_file); |