From 81473b0cdd52e11180d760e70994cd3dd565a344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Mon, 11 Aug 1997 08:49:08 +0000 Subject: [PATCH] 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 3983ea298c15..06d8d604f5d6 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; }