not enough memory return code added
@@ -6477,7 +6477,11 @@ Finish:
AlignedNamespaceCapacity = ROUNDUP(NamespaceCapacity, NAMESPACE_4KB_ALIGNMENT_SIZE * RegionCount);
RegionSize = AlignedNamespaceCapacity / RegionCount;
ReturnCode = FindADMemmapRangeInIS(pIS, RegionSize, &AppDirectRange);
- if (EFI_ERROR(ReturnCode)) {
+ if (EFI_NOT_FOUND == ReturnCode) {
+ ResetCmdStatus(pCommandStatus, NVM_ERR_NOT_ENOUGH_FREE_SPACE);
+ goto Finish;
+ }
+ else if (EFI_ERROR(ReturnCode)) {
NVDIMM_DBG(" AD Mem Map Range not found for pIS");
goto Finish;
}
@@ -6633,7 +6637,6 @@ Build NAMESPACE structure
/**
Update NAMESPACE_INDEX with NAMESPACE_LABEL(s)
**/
-
Index2 = 0;
LIST_FOR_EACH(pNode, &pIS->DimmRegionList) {
pDimmRegion = DIMM_REGION_FROM_NODE(pNode);
