summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1997-03-24 17:42:25 +0000
committergibbs <gibbs@FreeBSD.org>1997-03-24 17:42:25 +0000
commite81c5f447715793a8c31b15c1c1cf08d1bbf300e (patch)
treeacada5a15825838e1fcf623321885184a4eb62bc /sys
parent64374bd80fbd7c79a98e4076e11fa4baf08d7d28 (diff)
downloadFreeBSD-src-e81c5f447715793a8c31b15c1c1cf08d1bbf300e.zip
FreeBSD-src-e81c5f447715793a8c31b15c1c1cf08d1bbf300e.tar.gz
Fix a fencepost error in ahc_find_scb that could cause us to wrongfully
find an SCB still down on the card that was paged out. This only affects error recovery. Submitted by: Daniel M. Eischen <deischen@iworks.InterWorks.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/scsi/aic7xxx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/scsi/aic7xxx.c b/sys/i386/scsi/aic7xxx.c
index f6ae3c6..d89727d 100644
--- a/sys/i386/scsi/aic7xxx.c
+++ b/sys/i386/scsi/aic7xxx.c
@@ -32,7 +32,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: aic7xxx.c,v 1.107 1997/03/23 06:33:36 bde Exp $
+ * $Id: aic7xxx.c,v 1.108 1997/03/24 05:05:18 gibbs Exp $
*/
/*
* TODO:
@@ -3186,7 +3186,7 @@ ahc_find_scb(ahc, scb)
break;
}
ahc_outb(ahc, SCBPTR, saved_scbptr);
- if (curindex > ahc->scb_data->maxhscbs)
+ if (curindex >= ahc->scb_data->maxhscbs)
curindex = SCB_LIST_NULL;
return curindex;
OpenPOWER on IntegriCloud