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:
parent
68a97164d3
commit
18fe07ed22
|
@ -370,7 +370,7 @@ void DrivingDCLK(DRAM_SYS_ATTR * DramAttr)
|
||||||
else if (DIMMFREQ_667 == DramAttr->DramFreq)
|
else if (DIMMFREQ_667 == DramAttr->DramFreq)
|
||||||
FreqId = 2;
|
FreqId = 2;
|
||||||
else if (DIMMFREQ_800 == DramAttr->DramFreq)
|
else if (DIMMFREQ_800 == DramAttr->DramFreq)
|
||||||
FreqId = 4;
|
FreqId = 3;
|
||||||
else
|
else
|
||||||
FreqId = 0;
|
FreqId = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue