diff options
author | se <se@FreeBSD.org> | 1997-08-11 08:49:08 +0000 |
---|---|---|
committer | se <se@FreeBSD.org> | 1997-08-11 08:49:08 +0000 |
commit | 01dae1c44163d03d9b010dad37f6364804a4e29a (patch) | |
tree | aae62b232c14c17f56539b5219584e4c7f04c3d7 | |
parent | 59770b8246c383da01838df128a563d5e574c764 (diff) | |
download | FreeBSD-src-01dae1c44163d03d9b010dad37f6364804a4e29a.zip FreeBSD-src-01dae1c44163d03d9b010dad37f6364804a4e29a.tar.gz |
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>
-rw-r--r-- | sys/pci/tek390.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/tek390.c b/sys/pci/tek390.c index 3983ea2..06d8d60 100644 --- a/sys/pci/tek390.c +++ b/sys/pci/tek390.c @@ -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; } |