From 4d09f98c4affc1f7612274ef1ebbfde325ebe643 Mon Sep 17 00:00:00 2001 From: Vasant Hegde Date: Wed, 9 Mar 2016 21:56:16 +0530 Subject: 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 Signed-off-by: Stewart Smith --- hw/ipmi/ipmi-sel.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.1