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

Cyril Bur cyril.bur at au1.ibm.com
Mon Mar 19 15:54:18 AEDT 2018


Fixes: CID 209503
Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
---
 libpore/p9_stop_api.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.16.2



More information about the Skiboot mailing list