]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/exec.c
get rid of pt_regs argument of ->load_binary()
[mirror_ubuntu-bionic-kernel.git] / fs / exec.c
index 2aee7ef10663cf651e76adfa20ebbd2c7216dd10..721a299295117f92d271f17afd224db1787712a1 100644 (file)
--- 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