From 01dae1c44163d03d9b010dad37f6364804a4e29a Mon Sep 17 00:00:00 2001 From: se Date: Mon, 11 Aug 1997 08:49:08 +0000 Subject: 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 --- sys/pci/tek390.c | 6 +++--- 1 file 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; } -- cgit v1.1