]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: ptrace: Switch syscall reporting to tracehook_report_syscall_entry().
authorRalf Baechle <ralf@linux-mips.org>
Wed, 26 Sep 2012 19:30:47 +0000 (21:30 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Sep 2012 19:45:31 +0000 (21:45 +0200)
Set ret just so __must_check is satisfied but don't use the variable for
anything yet.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/ptrace.c

index 36f121f76e6ffdfe070947fc89117750327590d6..17f4056e0ebf565f3e5999ee513b9b880822e5fe 100644 (file)
@@ -653,11 +653,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],