]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/binfmt_aout.c
NFS: Ensure that we free the rpc_task after read and write cleanups are done
[karo-tx-linux.git] / fs / binfmt_aout.c
index 0e7a6f81ae36c0d9b57b36550ea58705675bd9f1..6043567b95c23ae5f97e1c9dadae7a17707219df 100644 (file)
@@ -30,7 +30,7 @@
 #include <asm/cacheflush.h>
 #include <asm/a.out-core.h>
 
-static int load_aout_binary(struct linux_binprm *, struct pt_regs * regs);
+static int load_aout_binary(struct linux_binprm *);
 static int load_aout_library(struct file*);
 
 #ifdef CONFIG_COREDUMP
@@ -201,8 +201,9 @@ static unsigned long __user *create_aout_tables(char __user *p, struct linux_bin
  * libraries.  There is no binary dependent code anywhere else.
  */
 
-static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
+static int load_aout_binary(struct linux_binprm * bprm)
 {
+       struct pt_regs *regs = current_pt_regs();
        struct exec ex;
        unsigned long error;
        unsigned long fd_offset;