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 19:15:25 +0200 |
commit | b20bff02b21ac7b725fd09590d5724d306552529 (patch) | |
tree | 1fed660bd031ea5f9cf510ea752a95f64777e47f /arch/mips | |
parent | MIPS: Fix calc_vmlinuz_load_addr build warnings. (diff) | |
download | linux-b20bff02b21ac7b725fd09590d5724d306552529.tar.xz linux-b20bff02b21ac7b725fd09590d5724d306552529.zip |
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 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; |