If all dimms are missing their LSA, then return NOT_FOUND from InitializeNamespaces
@@ -2668,6 +2668,10 @@ InitializeNamespaces(
LIST_FOR_EACH(pNode, &gNvmDimmData->PMEMDev.Dimms) {
pDimm = DIMM_FROM_NODE(pNode);
+ if (pDimm->LsaStatus == LSA_NOT_INIT) {
+ continue;
+ }
+
ReturnCode = RetrieveNamespacesFromLsa(pDimm, gNvmDimmData->PMEMDev.pFitHead,
&gNvmDimmData->PMEMDev.Namespaces);
if (EFI_ERROR(ReturnCode)) {
