[7/9] p9_stop_api: Only update SCOM restore entry if there is an entry

Message ID 20180319045420.22046-8-cyril.bur@au1.ibm.com
State New
Headers show
Series
  • Coverity fixes
Related show

Commit Message

Cyril Bur March 19, 2018, 4:54 a.m.
Fixes: CID 209503
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
---
 libpore/p9_stop_api.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/libpore/p9_stop_api.C b/libpore/p9_stop_api.C
index 5c0f2e5e..b3f03f0f 100644
--- a/libpore/p9_stop_api.C
+++ b/libpore/p9_stop_api.C
@@ -1070,7 +1070,7 @@  StopReturnCode_t p9_stop_save_scom( void* const   i_pImage,
                "0x%08x", i_operation, chipletId ,
                i_scomAddress );
     }
-    else
+    else if (pEditScomHeader)
     {
         //Update SCOM Restore entry with version and memory layout
         //info