Fix problem in the DC390_DefaultEEprom subroutine, which could lead

to spurious wites outside an alloccated array in the case of generic
AMD SCSI cards.

PR:		kern/4217
Submitted by:	Erik H. Moe <ehm@cris.com>
This commit is contained in:
Stefan Eßer 1997-08-11 08:49:08 +00:00
parent db4f31b740
commit 81473b0cdd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28073

View File

@ -1508,9 +1508,9 @@ DC390_DefaultEEprom( USHORT mechnum, USHORT index )
*ptr = (TAG_QUEUING_|EN_DISCONNECT_|SYNC_NEGO_|PARITY_CHK_);
ptr += 4;
}
ptr[EE_ADAPT_SCSI_ID] = 7;
ptr[EE_MODE2] = (LUN_CHECK|ACTIVE_NEGATION);
ptr[EE_TAG_CMD_NUM] = 4;
eepromBuf[index][EE_ADAPT_SCSI_ID] = 7;
eepromBuf[index][EE_MODE2] = (LUN_CHECK|ACTIVE_NEGATION);
eepromBuf[index][EE_TAG_CMD_NUM] = 4;
return 0;
}