From 18fe07ed22e81c6315c199d5ae71b689163bac46 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Mon, 4 Aug 2014 09:58:30 +1000 Subject: 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 Reviewed-on: http://review.coreboot.org/6485 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/northbridge/via/vx800/driving_setting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/northbridge/via/vx800/driving_setting.c b/src/northbridge/via/vx800/driving_setting.c index 695fcabbf4..0c8865a2e6 100644 --- a/src/northbridge/via/vx800/driving_setting.c +++ b/src/northbridge/via/vx800/driving_setting.c @@ -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; -- cgit v1.2.3