diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2022-05-12 14:04:08 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-05-13 12:56:28 +0200 |
commit | f5c0b4f30416c670408a77be94703d04d22b57df (patch) | |
tree | 9a6a24170f4fecb7180eae228d55ddd6f619bf3e /arch/x86/kernel/process_32.c | |
parent | x86/aperfperf: Make it correct on 32bit and UP kernels (diff) | |
download | linux-f5c0b4f30416c670408a77be94703d04d22b57df.tar.xz linux-f5c0b4f30416c670408a77be94703d04d22b57df.zip |
x86/prctl: Remove pointless task argument
The functions invoked via do_arch_prctl_common() can only operate on
the current task and none of these function uses the task argument.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/87lev7vtxj.ffs@tglx
Diffstat (limited to 'arch/x86/kernel/process_32.c')
-rw-r--r-- | arch/x86/kernel/process_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c index 26edb1cd07a4..0faa5e28dd64 100644 --- a/arch/x86/kernel/process_32.c +++ b/arch/x86/kernel/process_32.c @@ -222,5 +222,5 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p) SYSCALL_DEFINE2(arch_prctl, int, option, unsigned long, arg2) { - return do_arch_prctl_common(current, option, arg2); + return do_arch_prctl_common(option, arg2); } |