mm/memory-failure: send SIGBUS(BUS_MCEERR_AR) only to current thread
[linux-2.6-microblaze.git] / fs / binfmt_aout.c
index 8e8346a..3e84e9b 100644 (file)
@@ -151,7 +151,7 @@ static int load_aout_binary(struct linux_binprm * bprm)
                return -ENOMEM;
 
        /* Flush all traces of the currently running executable */
-       retval = flush_old_exec(bprm);
+       retval = begin_new_exec(bprm);
        if (retval)
                return retval;
 
@@ -174,7 +174,6 @@ static int load_aout_binary(struct linux_binprm * bprm)
        if (retval < 0)
                return retval;
 
-       install_exec_creds(bprm);
 
        if (N_MAGIC(ex) == OMAGIC) {
                unsigned long text_addr, map_size;