Skip to content

Commit

Permalink
Reset local variables for each iteration of the loop during namespace…
Browse files Browse the repository at this point in the history
… loading.

Signed-off-by: Steven Pontsler <[email protected]>
  • Loading branch information
StevenPontsler authored and gldiviney committed Mar 26, 2019
1 parent d4c23cb commit 4f6cfc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DcpmPkg/driver/Core/Namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4f6cfc3

Please sign in to comment.