diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-09-10 17:32:20 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-09-10 17:32:20 +0000 |
commit | 7b82f2239af8df67bdfebb58055b56ffa6b04c7b (patch) | |
tree | b25ee360c599b56caa35190a6983c7b033caffee /sys/arch | |
parent | 6eb791ad571cf328d9d0921e1e31137663c8bfe2 (diff) |
Fix error value in ktrace syscall records. ok deraadt@ dlg@ guenther@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sh/sh/trap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sh/sh/trap.c b/sys/arch/sh/sh/trap.c index 67e0e0617cc..649b1bbb0e8 100644 --- a/sys/arch/sh/sh/trap.c +++ b/sys/arch/sh/sh/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.33 2015/02/09 09:32:53 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.34 2015/09/10 17:32:19 miod Exp $ */ /* $NetBSD: exception.c,v 1.32 2006/09/04 23:57:52 uwe Exp $ */ /* $NetBSD: syscall.c,v 1.6 2006/03/07 07:21:50 thorpej Exp $ */ @@ -514,7 +514,7 @@ syscall(struct proc *p, struct trapframe *tf) { caddr_t params; const struct sysent *callp; - int error, oerror, opc, nsys; + int error, opc, nsys; size_t argsize; register_t code, args[8], rval[2], ocode; @@ -610,7 +610,7 @@ syscall(struct proc *p, struct trapframe *tf) error = mi_syscall(p, code, callp, args, rval); - switch (oerror = error) { + switch (error) { case 0: tf->tf_r0 = rval[0]; tf->tf_r1 = rval[1]; @@ -630,7 +630,7 @@ syscall(struct proc *p, struct trapframe *tf) break; } - mi_syscall_return(p, code, oerror, rval); + mi_syscall_return(p, code, error, rval); } /* |