Don't reference our SCB until we have validated that the firmware has

returned an SCB that is in range.
This commit is contained in:
gibbs 1999-05-23 18:55:58 +00:00
parent a39409ff72
commit 7b05b9730b

View File

@ -36,7 +36,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: aic7xxx.c,v 1.29 1999/05/18 03:58:49 gibbs Exp $
* $Id: aic7xxx.c,v 1.30 1999/05/22 22:04:07 gibbs Exp $
*/
/*
* A few notes on features of the driver.
@ -2161,7 +2161,6 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat)
*/
scb_index = ahc_inb(ahc, SCB_TAG);
scb = &ahc->scb_data->scbarray[scb_index];
hscb = scb->hscb;
/*
* Set the default return value to 0 (don't
@ -2178,6 +2177,8 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat)
goto unpause;
}
hscb = scb->hscb;
/* Don't want to clobber the original sense code */
if ((scb->flags & SCB_SENSE) != 0) {
/*