Fix OCC active check in SBE timeout path
Make sure to dereference the iterator so the code compiles.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Change-Id: Ide40f0bfe2559f718ccb208ab08e55f55ef8afdc
diff --git a/occ_manager.cpp b/occ_manager.cpp
index ab86d4b..26950fd 100644
--- a/occ_manager.cpp
+++ b/occ_manager.cpp
@@ -325,7 +325,7 @@
return instance == obj->getOccInstanceID();
});
- if (obj != statusObjects.end() && obj->occActive())
+ if (obj != statusObjects.end() && (*obj)->occActive())
{
log<level::INFO>("SBE timeout, requesting HRESET",
entry("SBE=%d", instance));