mirror of
https://github.com/86Box/86Box.git
synced 2026-02-24 02:18:20 -07:00
Fix null dereference in spd_write_drbs_intel_815ep()
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user