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-Tag: upstream/snapshot3+hdmi~10495^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b20bff02b21ac7b725fd09590d5724d306552529;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 d21c388..584e6b5 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;