diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2017-08-03 16:45:47 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-15 16:37:14 +1000 |
commit | 0241b32d0d02da6b08b329c5ccbafdca8e9a738a (patch) | |
tree | 85d635884c86af47713b7604ccc3c14cbfc6c0bc /hdata | |
parent | fd0411b559a017df47b690c2f69f593fa2eece09 (diff) | |
download | skiboot-0241b32d0d02da6b08b329c5ccbafdca8e9a738a.zip skiboot-0241b32d0d02da6b08b329c5ccbafdca8e9a738a.tar.gz skiboot-0241b32d0d02da6b08b329c5ccbafdca8e9a738a.tar.bz2 |
hdata/paca: Fix possible dereference of NULL (CID 141080)
Fixes: CID 141080
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/paca.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hdata/paca.c b/hdata/paca.c index eaad0d4..3d13a5f 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 */ |