summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2014-12-09 21:19:25 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-12-09 21:19:25 +1100
commit55a59b944a913832e54b4818b41046bda0b6be66 (patch)
treedf5209e40e63a2f0dceadf19524704b83a16ddc9 /hw
parent396a9769134c3621b7807f8e781d22baf0738f13 (diff)
downloadtalos-skiboot-55a59b944a913832e54b4818b41046bda0b6be66.tar.gz
talos-skiboot-55a59b944a913832e54b4818b41046bda0b6be66.zip
Make fsp_freemsg() behave if passed a NULL pointer
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/fsp/fsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/fsp/fsp.c b/hw/fsp/fsp.c
index c1eb53a7..6a863521 100644
--- a/hw/fsp/fsp.c
+++ b/hw/fsp/fsp.c
@@ -250,7 +250,7 @@ void __fsp_freemsg(struct fsp_msg *msg)
void fsp_freemsg(struct fsp_msg *msg)
{
- if (msg->resp)
+ if (msg && msg->resp)
__fsp_freemsg(msg->resp);
__fsp_freemsg(msg);
}
OpenPOWER on IntegriCloud