summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorpk <pk@NetBSD.org>2000-07-19 16:07:00 +0000
committerpk <pk@NetBSD.org>2000-07-19 16:07:00 +0000
commitf9e6c9cf427e8b047f62fa220fe3e654bf22285b (patch)
treea29af221b2b8fabdadfef18ccc9b115b2fac2b24 /sys/dev
parent6996dd8691da9304d2a85a4c2512399ea80c6631 (diff)
Fixx off-by-one error in handlereset().
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/siop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/siop.c b/sys/dev/ic/siop.c
index ffa0fc1e6b7..a4af0c0b0b1 100644
--- a/sys/dev/ic/siop.c
+++ b/sys/dev/ic/siop.c
@@ -1,4 +1,4 @@
-/* $NetBSD: siop.c,v 1.24 2000/06/28 17:13:04 mrg Exp $ */
+/* $NetBSD: siop.c,v 1.25 2000/07/19 16:07:00 pk Exp $ */
/*
* Copyright (c) 2000 Manuel Bouyer.
@@ -1072,7 +1072,7 @@ siop_handle_reset(sc)
siop_reset(sc);
TAILQ_INIT(&reset_list);
/* find all active commands */
- for (target = 0; target < sc->sc_link.scsipi_scsi.max_target;
+ for (target = 0; target <= sc->sc_link.scsipi_scsi.max_target;
target++) {
if (sc->targets[target] == NULL)
continue;