From: Ralf Baechle Date: Fri, 31 Aug 2012 10:42:18 +0000 (+0200) Subject: MIPS: ptrace: Switch syscall reporting to tracehook_report_syscall_entry(). X-Git-Tag: next-20120926~112^2^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=82d4fbb89a2ebfa03b75430091ed483b877dff06;p=karo-tx-linux.git 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: Ralf Baechle --- diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c index ea7ba4d10ae4..94fd0f4255c2 100644 --- a/arch/mips/kernel/ptrace.c +++ b/arch/mips/kernel/ptrace.c @@ -652,11 +652,14 @@ long arch_ptrace(struct task_struct *child, long request, */ asmlinkage void syscall_trace_enter(struct pt_regs *regs) { + long ret = 0; + /* do the secure computing check first */ secure_computing_strict(regs->regs[2]); - if (test_thread_flag(TIF_SYSCALL_TRACE)) - ptrace_report_syscall(regs); + if (test_thread_flag(TIF_SYSCALL_TRACE) && + tracehook_report_syscall_entry(regs)) + ret = -1; audit_syscall_entry(__syscall_get_arch(), regs->regs[2],