diff options
author | Jeremy Compostella <jeremy.compostella@intel.com> | 2023-11-16 08:48:23 -0800 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2023-11-23 23:29:19 +0000 |
commit | 2ff24090376ae8eaf963696de0e20e3bc8bbe54f (patch) | |
tree | 43cc107d758abd5c84eac41e92d10e21f1e59625 /src | |
parent | c8dc4a3bd1f93a02c47768f4ef122f67bb1a8fe3 (diff) | |
download | coreboot-2ff24090376ae8eaf963696de0e20e3bc8bbe54f.tar.gz coreboot-2ff24090376ae8eaf963696de0e20e3bc8bbe54f.tar.bz2 coreboot-2ff24090376ae8eaf963696de0e20e3bc8bbe54f.zip |
nb/intel/sandybridge: Fix unitialized variable issue4.22.014.22_branch
Cherry-picked from main branch using commit caa0c0e71a.
Original commit message:
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
Original-Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Original-Reviewed-on: https://review.coreboot.org/c/coreboot/+/79093
Original-Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79231
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/northbridge/intel/sandybridge/raminit_mrc.c | 2 |
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 a1805a2ada88..68b02b81bc2a 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); |