Skip to content

Commit

Permalink
MIPS: ptrace: Switch syscall reporting to tracehook_report_syscall_en…
Browse files Browse the repository at this point in the history
…try().

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>
  • Loading branch information
Ralf Baechle committed Oct 29, 2013
1 parent bec9b2b commit 0dfa95a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/mips/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,13 +654,15 @@ long arch_ptrace(struct task_struct *child, long request,
*/
asmlinkage void syscall_trace_enter(struct pt_regs *regs)
{
long ret = 0;
user_exit();

/* 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],
Expand Down

0 comments on commit 0dfa95a

Please sign in to comment.