From 4f6cfc3522436788149c5970fc23ec2a396b414b Mon Sep 17 00:00:00 2001 From: Steven Pontsler Date: Tue, 12 Mar 2019 00:14:32 +0100 Subject: [PATCH] Reset local variables for each iteration of the loop during namespace loading. Signed-off-by: Steven Pontsler --- DcpmPkg/driver/Core/Namespace.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DcpmPkg/driver/Core/Namespace.c b/DcpmPkg/driver/Core/Namespace.c index 4a022c5c..ec64d212 100644 --- a/DcpmPkg/driver/Core/Namespace.c +++ b/DcpmPkg/driver/Core/Namespace.c @@ -2295,6 +2295,10 @@ RetrieveNamespacesFromLsa( LIST_FOR_EACH(pNode, &gNvmDimmData->PMEMDev.Dimms) { pDimm = DIMM_FROM_NODE(pNode); + // reset these values to default for processing of each dimm + BttFound = FALSE; + PfnFound = FALSE; + if (!IsDimmManageable(pDimm)) { continue; }