summaryrefslogtreecommitdiffstats
path: root/src/lib/spd_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/spd_cache.c')
-rw-r--r--src/lib/spd_cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/spd_cache.c b/src/lib/spd_cache.c
index 44830a853779..dff6ede8609f 100644
--- a/src/lib/spd_cache.c
+++ b/src/lib/spd_cache.c
@@ -155,6 +155,10 @@ bool check_if_dimm_changed(u8 *spd_cache, struct spd_block *blk)
bool dimm_changed = false;
/* Check if the dimm is the same with last system boot. */
for (i = 0; i < SC_SPD_NUMS && !dimm_changed; i++) {
+ if (blk->addr_map[i] == 0) {
+ printk(BIOS_NOTICE, "SPD_CACHE: DIMM%d does not exist\n", i);
+ continue;
+ }
/* Return true if any error happened here. */
if (get_spd_sn(blk->addr_map[i], &sn) == CB_ERR)
return true;