aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 c1eb53a..6a86352 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);
}