diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 18:01:51 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 18:01:51 +0000 |
commit | ef0744e09805272286fb98621c45bc5dd4afc2ad (patch) | |
tree | e785bc7fdfa35f73645d0f88774bb9d757c6777e /sys/arch | |
parent | c699980130dcdacf11c35aee88c254aa542d0970 (diff) |
Fix a typo causing a sanity check in m88110_syscall() to never trigger.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/m88k/m88k/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c index ddd1f0103cb..6ba44be605a 100644 --- a/sys/arch/m88k/m88k/trap.c +++ b/sys/arch/m88k/m88k/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.74 2011/04/03 14:56:28 guenther Exp $ */ +/* $OpenBSD: trap.c,v 1.75 2011/04/06 18:01:50 miod Exp $ */ /* * Copyright (c) 2004, Miodrag Vallat. * Copyright (c) 1998 Steve Murphree, Jr. @@ -1365,7 +1365,7 @@ m88110_syscall(register_t code, struct trapframe *tf) callp += code; i = callp->sy_argsize / sizeof(register_t); - if (i > sizeof(args) > sizeof(register_t)) + if (i > sizeof(args) / sizeof(register_t)) panic("syscall nargs"); if (i > nap) { bcopy((caddr_t)ap, (caddr_t)args, nap * sizeof(register_t)); |