Don't repeat dimm information for uninitialized dimms
@@ -577,7 +577,7 @@ RetrieveISFromInterleaveInformationTable(
if (Rc == EFI_NOT_FOUND) {
pIS->State |= IS_STATE_DIMM_MISSING;
NVDIMM_DBG("The Dimm related with the DimmRegion has not been found on the Dimm list");
- }
+ } else {
InsertTailList(&pIS->DimmRegionList, &pDimmRegion->DimmRegionNode);
IsRegionIndex = pDimmRegion->pDimm->IsRegionsNum;
@@ -587,6 +587,7 @@ RetrieveISFromInterleaveInformationTable(
pIS->Size += pDimmRegion->PartitionSize;
}
+ }
pCurrentIdentInfo++;
}
