diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-09-22 21:39:41 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-09-22 21:39:41 +0000 |
commit | 4085d09b43964c8ebb56763bfe49d52a1ff86b70 (patch) | |
tree | 95c7d5b4e6877de37715da57ee17f461d447d792 /sys/arch/mvme68k | |
parent | ae364d8ea331da992bd261a9abb64af0b7a0d27f (diff) |
Off-by-ones, from aaron@
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r-- | sys/arch/mvme68k/dev/ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mvme68k/dev/ssh.c b/sys/arch/mvme68k/dev/ssh.c index bc09863d33c..9f140983bde 100644 --- a/sys/arch/mvme68k/dev/ssh.c +++ b/sys/arch/mvme68k/dev/ssh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.5 2003/06/02 23:27:50 millert Exp $ */ +/* $OpenBSD: ssh.c,v 1.6 2003/09/22 21:39:39 miod Exp $ */ /* * Copyright (c) 1994 Michael L. Hitch @@ -1054,7 +1054,7 @@ ssh_checkintr(sc, istat, dstat, sstat0, status) n = (n - Ent_dataout) / 16; else n = (n - Ent_datain) / 16; - if (n <= 0 && n > DMAMAXIO) + if (n <= 0 || n >= DMAMAXIO) printf("TEMP invalid %d\n", n); else { acb->iob_curbuf = (u_long)acb->ds.chain[n].databuf; |