x86, efi: Fix PCI ROM handing in EFI boot stub, in 32-bit mode
[cascardo/linux.git] / fs / binfmt_misc.c
index 9be335f..0c8869f 100644 (file)
@@ -172,7 +172,10 @@ static int load_misc_binary(struct linux_binprm *bprm)
                goto _error;
        bprm->argc ++;
 
-       bprm->interp = iname;   /* for binfmt_script */
+       /* Update interp in case binfmt_script needs it. */
+       retval = bprm_change_interp(iname, bprm);
+       if (retval < 0)
+               goto _error;
 
        interp_file = open_exec (iname);
        retval = PTR_ERR (interp_file);