diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2011-04-13 23:51:23 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-05-10 18:15:25 +0100 |
commit | b20bff02b21ac7b725fd09590d5724d306552529 (patch) | |
tree | 1fed660bd031ea5f9cf510ea752a95f64777e47f /arch/mips | |
parent | 893d20fbae483913250a5d8bd9b4ce861a3adf2a (diff) | |
download | op-kernel-dev-b20bff02b21ac7b725fd09590d5724d306552529.zip op-kernel-dev-b20bff02b21ac7b725fd09590d5724d306552529.tar.gz |
MIPS: Audit: Fix success success argument pass to audit_syscall_exit
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-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; |