northbridge/via/vx800: Fix out-of-bounds read due to off-by-one

Change-Id: Ia7fda59b60b2148dd4d246686bd94d2334b23eb5
Found-by: Coverity Scan
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/6485
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Edward O'Callaghan 2014-08-04 09:58:30 +10:00
parent 68a97164d3
commit 18fe07ed22
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ void DrivingDCLK(DRAM_SYS_ATTR * DramAttr)
else if (DIMMFREQ_667 == DramAttr->DramFreq)
FreqId = 2;
else if (DIMMFREQ_800 == DramAttr->DramFreq)
FreqId = 4;
FreqId = 3;
else
FreqId = 0;