summaryrefslogtreecommitdiff
path: root/src/northbridge/intel
diff options
context:
space:
mode:
authorJeremy Compostella <jeremy.compostella@intel.com>2023-11-16 08:48:23 -0800
committerFelix Held <felix-coreboot@felixheld.de>2023-11-20 14:35:48 +0000
commitcaa0c0e71a594b6b9930f243966ee973724dd490 (patch)
tree724236c34c2a3b8131e2dd8e1e7912c91c43c2b2 /src/northbridge/intel
parent74905117bda7c844c1c14ebc110f1bd5e0bb3663 (diff)
nb/intel/sandybridge: Fix unitialized variable issue
commit 1e9601c5ef80 ("nb/intel/sandybridge: Standardize MRC vs. native SPD mapping API") introduced an uninitialized variable issue. Change-Id: I41b081dc4c961acc04423067e29e0eabe5f17539 Found-by: Coverity CID 1524317 Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/79093 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Diffstat (limited to 'src/northbridge/intel')
-rw-r--r--src/northbridge/intel/sandybridge/raminit_mrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit_mrc.c b/src/northbridge/intel/sandybridge/raminit_mrc.c
index a1805a2ada..68b02b81bc 100644
--- a/src/northbridge/intel/sandybridge/raminit_mrc.c
+++ b/src/northbridge/intel/sandybridge/raminit_mrc.c
@@ -315,7 +315,7 @@ static void devicetree_fill_pei_data(struct pei_data *pei_data)
static void spd_fill_pei_data(struct pei_data *pei_data)
{
struct spd_info spdi = {0};
- unsigned int i, have_memory_down;
+ unsigned int i, have_memory_down = 0;
mb_get_spd_map(&spdi);