[Skiboot] [PATCH 1/3] [FSP] Fix potential NULL pointer dereference

Ananth N Mavinakayanahalli ananth at in.ibm.com
Wed Jun 17 18:23:41 AEST 2015


Safety check...

Signed-off-by: Ananth N Mavinakayanahalli <ananth at in.ibm.com>
---
 hw/fsp/fsp.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/fsp/fsp.c b/hw/fsp/fsp.c
index 12e162d..9a27a6f 100644
--- a/hw/fsp/fsp.c
+++ b/hw/fsp/fsp.c
@@ -1799,6 +1799,8 @@ static void fsp_init_links(struct dt_node *fsp_node)
 	struct fsp_iopath *fiop;
 
 	linksprop = dt_find_property(fsp_node, "ibm,psi-links");
+	assert(linksprop);
+
 	index = dt_prop_get_u32(fsp_node, "reg");
 	fsp = fsp_find_by_index(index);
 	if (!fsp) {



More information about the Skiboot mailing list