diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2011-04-13 21:51:23 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-05-10 17:15:25 (GMT) |
commit | b20bff02b21ac7b725fd09590d5724d306552529 (patch) | |
tree | 1fed660bd031ea5f9cf510ea752a95f64777e47f | |
parent | 893d20fbae483913250a5d8bd9b4ce861a3adf2a (diff) | |
download | linux-b20bff02b21ac7b725fd09590d5724d306552529.tar.xz |
MIPS: Audit: Fix success success argument pass to audit_syscall_exit
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/kernel/ptrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |