From: Ralf Baechle Date: Wed, 13 Apr 2011 21:51:23 +0000 (+0200) Subject: MIPS: Audit: Fix success success argument pass to audit_syscall_exit X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b20bff02b21ac7b725fd09590d5724d306552529;p=openwrt%2Fstaging%2Fblogic.git MIPS: Audit: Fix success success argument pass to audit_syscall_exit Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c index d21c388c0116..584e6b55c865 100644 --- a/arch/mips/kernel/ptrace.c +++ b/arch/mips/kernel/ptrace.c @@ -540,8 +540,8 @@ asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit) secure_computing(regs->regs[2]); if (unlikely(current->audit_context) && entryexit) - audit_syscall_exit(AUDITSC_RESULT(regs->regs[2]), - regs->regs[2]); + audit_syscall_exit(AUDITSC_RESULT(regs->regs[7]), + -regs->regs[2]); if (!(current->ptrace & PT_PTRACED)) goto out;