From c2df2e4bc2e193f629f93165eaeb2dde24c09bb2 Mon Sep 17 00:00:00 2001 From: "Justin T. Gibbs" Date: Mon, 24 Mar 1997 17:42:25 +0000 Subject: [PATCH] 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 --- sys/i386/scsi/aic7xxx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/i386/scsi/aic7xxx.c b/sys/i386/scsi/aic7xxx.c index f6ae3c63893..d89727df229 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;