diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-21 04:00:48 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-29 03:53:38 +0100 |
commit | 71613c3b871c5a9f27cc48f124251bcd3aa23be1 (patch) | |
tree | 792635fc67cb3397c66e4988d5ca92660efcdc6e /fs/binfmt_som.c | |
parent | get rid of pt_regs argument of search_binary_handler() (diff) | |
download | linux-71613c3b871c5a9f27cc48f124251bcd3aa23be1.tar.xz linux-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/binfmt_som.c')
-rw-r--r-- | fs/binfmt_som.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/binfmt_som.c b/fs/binfmt_som.c index 4517aaff61b4..4e00ed68d4a6 100644 --- a/fs/binfmt_som.c +++ b/fs/binfmt_som.c @@ -35,7 +35,7 @@ #include <linux/elf.h> -static int load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs); +static int load_som_binary(struct linux_binprm * bprm); static int load_som_library(struct file *); /* @@ -180,13 +180,14 @@ out: */ static int -load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs) +load_som_binary(struct linux_binprm * bprm) { int retval; unsigned int size; unsigned long som_entry; struct som_hdr *som_ex; struct som_exec_auxhdr *hpuxhdr; + struct pt_regs *regs = current_pt_regs(); /* Get the exec-header */ som_ex = (struct som_hdr *) bprm->buf; |