summaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-10-20 22:00:48 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-11-28 21:53:38 -0500
commit71613c3b871c5a9f27cc48f124251bcd3aa23be1 (patch)
tree792635fc67cb3397c66e4988d5ca92660efcdc6e /fs/exec.c
parent3c456bfc4ba66e9cda210da7bc4fb0ba9fcc6972 (diff)
downloadlinux-stable-71613c3b871c5a9f27cc48f124251bcd3aa23be1.tar.gz
linux-stable-71613c3b871c5a9f27cc48f124251bcd3aa23be1.tar.bz2
linux-stable-71613c3b871c5a9f27cc48f124251bcd3aa23be1.zip
get rid of pt_regs argument of ->load_binary()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 2aee7ef10663..721a29929511 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1374,13 +1374,13 @@ int search_binary_handler(struct linux_binprm *bprm)
for (try=0; try<2; try++) {
read_lock(&binfmt_lock);
list_for_each_entry(fmt, &formats, lh) {
- int (*fn)(struct linux_binprm *, struct pt_regs *) = fmt->load_binary;
+ int (*fn)(struct linux_binprm *) = fmt->load_binary;
if (!fn)
continue;
if (!try_module_get(fmt->module))
continue;
read_unlock(&binfmt_lock);
- retval = fn(bprm, current_pt_regs());
+ retval = fn(bprm);
/*
* Restore the depth counter to its starting value
* in this call, so we don't have to rely on every