aboutsummaryrefslogtreecommitdiff
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 16:09:12 +1100
commit4d09f98c4affc1f7612274ef1ebbfde325ebe643 (patch)
tree623361e02ffd0e46862336d45c1e0079bea05255
parent0c5269ab5b51718a47406e38a5900423b5a9d61f (diff)
downloadskiboot-4d09f98c4affc1f7612274ef1ebbfde325ebe643.zip
skiboot-4d09f98c4affc1f7612274ef1ebbfde325ebe643.tar.gz
skiboot-4d09f98c4affc1f7612274ef1ebbfde325ebe643.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>
-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 a179513..966ea15 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;
}