[Skiboot] [PATCH trivial] ipmi-sel: Free ipmi_msg in error path
Vasant Hegde
hegdevasant at linux.vnet.ibm.com
Wed Mar 4 19:57:21 AEDT 2020
Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
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 537bb3b38..2ed4179a6 100644
--- a/hw/ipmi/ipmi-sel.c
+++ b/hw/ipmi/ipmi-sel.c
@@ -324,6 +324,7 @@ static void ipmi_elog_poll(struct ipmi_msg *msg)
if (bmc_platform->sw->ipmi_oem_partial_add_esel == 0) {
prlog(PR_WARNING, "Dropped eSEL: BMC code is buggy/missing\n");
+ ipmi_sel_free_msg(msg);
return;
}
--
2.21.1
More information about the Skiboot
mailing list