]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
get rid of pt_regs argument of do_execve_common()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 21 Oct 2012 01:50:59 +0000 (21:50 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Nov 2012 02:53:37 +0000 (21:53 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/exec.c

index 5797ed07efd3295852b06429843b04f0a9931671..dc5e2830d353b5e78a68e4a49b1ab74a938b25fa 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1439,8 +1439,7 @@ EXPORT_SYMBOL(search_binary_handler);
  */
 static int do_execve_common(const char *filename,
                                struct user_arg_ptr argv,
-                               struct user_arg_ptr envp,
-                               struct pt_regs *regs)
+                               struct user_arg_ptr envp)
 {
        struct linux_binprm *bprm;
        struct file *file;
@@ -1448,6 +1447,7 @@ static int do_execve_common(const char *filename,
        bool clear_in_exec;
        int retval;
        const struct cred *cred = current_cred();
+       struct pt_regs *regs = current_pt_regs();
 
        /*
         * We move the actual failure in case of RLIMIT_NPROC excess from
@@ -1570,7 +1570,7 @@ int do_execve(const char *filename,
 {
        struct user_arg_ptr argv = { .ptr.native = __argv };
        struct user_arg_ptr envp = { .ptr.native = __envp };
-       return do_execve_common(filename, argv, envp, current_pt_regs());
+       return do_execve_common(filename, argv, envp);
 }
 
 #ifdef CONFIG_COMPAT
@@ -1586,7 +1586,7 @@ static int compat_do_execve(const char *filename,
                .is_compat = true,
                .ptr.compat = __envp,
        };
-       return do_execve_common(filename, argv, envp, current_pt_regs());
+       return do_execve_common(filename, argv, envp);
 }
 #endif