aboutsummaryrefslogtreecommitdiff
path: root/hw/ipmi
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2016-03-09 21:56:16 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-03-11 15:24:39 +1100
commit8dcb68e5ddb5db926c0c9a97c99d5e31cbc405ff (patch)
tree9f898a69da63c798b9614094df72202523d3bd58 /hw/ipmi
parent1c6af82325d84453711fb4929b64de089f6cb89d (diff)
downloadskiboot-8dcb68e5ddb5db926c0c9a97c99d5e31cbc405ff.zip
skiboot-8dcb68e5ddb5db926c0c9a97c99d5e31cbc405ff.tar.gz
skiboot-8dcb68e5ddb5db926c0c9a97c99d5e31cbc405ff.tar.bz2
ipmi-sel: Fix memory leak in error path
Commit a5299ba2 dropped non-severe event from logging to BMC, but I forgot to releaes the error log structure. Fixes: a5299ba2 (IPMI: Only log events that needs attention) Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/ipmi')
-rw-r--r--hw/ipmi/ipmi-sel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c
index 4610829..a563f71 100644
--- a/hw/ipmi/ipmi-sel.c
+++ b/hw/ipmi/ipmi-sel.c
@@ -404,6 +404,7 @@ int ipmi_elog_commit(struct errorlog *elog_buf)
if (elog_buf->event_severity < OPAL_PREDICTIVE_ERR_FAULT_RECTIFY_REBOOT ||
elog_buf->elog_origin != ORG_SAPPHIRE) {
prlog(PR_INFO, "dropping non severe PEL event\n");
+ opal_elog_complete(elog_buf, true);
return 0;
}