MIPS: Audit: Fix success success argument pass to audit_syscall_exit
authorRalf Baechle <ralf@linux-mips.org>
Wed, 13 Apr 2011 21:51:23 +0000 (23:51 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 10 May 2011 17:15:25 +0000 (18:15 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/ptrace.c

index d21c388c0116f06abfee3ebef3d9764245d818ed..584e6b55c86583201cbd0b54ae0c2ba6ed12e381 100644 (file)
@@ -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;