[Skiboot] [PATCH 08/12] hdata/paca: Fix possible dereference of NULL (CID 141080)

Cyril Bur cyril.bur at au1.ibm.com
Thu Aug 3 16:45:47 AEST 2017


Fixes: CID 141080
Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
---
 hdata/paca.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hdata/paca.c b/hdata/paca.c
index eaad0d4d..3d13a5f2 100644
--- a/hdata/paca.c
+++ b/hdata/paca.c
@@ -153,6 +153,9 @@ static void add_xics_icps(void)
 			continue;
 
 		intsrv = dt_find_property(cpu, "ibm,ppc-interrupt-server#s");
+		if (!intsrv)
+			continue;
+
 		pir = dt_prop_get_u32(cpu, "ibm,pir");
 
 		/* Get ibase address */
-- 
2.13.3



More information about the Skiboot mailing list