diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2023-12-13 12:41:32 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2023-12-13 12:41:32 +0000 |
commit | d0399c07df7b0b3e20240e9809f5c1591ec5ef73 (patch) | |
tree | 44851781424e04e515847022f5192423915ede10 | |
parent | 283900eae9be96f93997a11f6cd1dd7084cc1b13 (diff) |
Unbreak; looks like a not up-to-date diff was commited )-:
-rw-r--r-- | sys/arch/sh/sh/trap.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/sh/sh/trap.c b/sys/arch/sh/sh/trap.c index 0002a8cae56..436a952825b 100644 --- a/sys/arch/sh/sh/trap.c +++ b/sys/arch/sh/sh/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.55 2023/12/12 15:30:56 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.56 2023/12/13 12:41:31 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 $ */ @@ -557,9 +557,10 @@ syscall(struct proc *p, struct trapframe *tf) * and stack, but rather r7 is skipped and * the entire off_t is on the stack. */ - if (off_t_arg == 3) - break; - *ap++ = tf->tf_r7; argsize -= sizeof(int); + if (off_t_arg != 3) { + *ap++ = tf->tf_r7; + argsize -= sizeof(int); + } if (argsize > 0) { if ((error = copyin(params, ap, argsize))) |