Commit 0dfa95aa authored by Ralf Baechle's avatar Ralf Baechle

MIPS: ptrace: Switch syscall reporting to tracehook_report_syscall_entry().

Set ret just so __must_check is satisfied but don't use the variable for
anything yet.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent bec9b2b2
...@@ -654,13 +654,15 @@ long arch_ptrace(struct task_struct *child, long request, ...@@ -654,13 +654,15 @@ long arch_ptrace(struct task_struct *child, long request,
*/ */
asmlinkage void syscall_trace_enter(struct pt_regs *regs) asmlinkage void syscall_trace_enter(struct pt_regs *regs)
{ {
long ret = 0;
user_exit(); user_exit();
/* do the secure computing check first */ /* do the secure computing check first */
secure_computing_strict(regs->regs[2]); secure_computing_strict(regs->regs[2]);
if (test_thread_flag(TIF_SYSCALL_TRACE)) if (test_thread_flag(TIF_SYSCALL_TRACE) &&
ptrace_report_syscall(regs); tracehook_report_syscall_entry(regs))
ret = -1;
audit_syscall_entry(__syscall_get_arch(), audit_syscall_entry(__syscall_get_arch(),
regs->regs[2], regs->regs[2],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment