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>
This commit is contained in:
Justin T. Gibbs 1997-03-24 17:42:25 +00:00
parent c49659eaa6
commit c2df2e4bc2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24219

View File

@ -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;