Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b20bff02 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

MIPS: Audit: Fix success success argument pass to audit_syscall_exit

parent 893d20fb
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -540,8 +540,8 @@ asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit)
		secure_computing(regs->regs[2]);
		secure_computing(regs->regs[2]);


	if (unlikely(current->audit_context) && entryexit)
	if (unlikely(current->audit_context) && entryexit)
		audit_syscall_exit(AUDITSC_RESULT(regs->regs[2]),
		audit_syscall_exit(AUDITSC_RESULT(regs->regs[7]),
		                   regs->regs[2]);
		                   -regs->regs[2]);


	if (!(current->ptrace & PT_PTRACED))
	if (!(current->ptrace & PT_PTRACED))
		goto out;
		goto out;