Fix null dereference in spd_write_drbs_intel_815ep()

This commit is contained in:
Jasmine Iwanek
2023-01-27 14:32:41 -05:00
parent 8f68f12695
commit 87b2160673

View File

@@ -578,6 +578,8 @@ spd_write_drbs_intel_815ep(uint8_t *regs)
/* Write DRBs for each row. */
for (int slot = 0; slot < 3; slot++) {
if(spd_modules[slot] == NULL)
break;
size = spd_modules[slot]->row1 + spd_modules[slot]->row2;
spd_log("Intel 815EP SPD: Registering Slot %d with size %dMB.\n", slot, size);