[Skiboot] [PATCH v2 10/52] libflash/ipmi-hiomap: Fix leak of msg in callback

Andrew Jeffery andrew at aj.id.au
Thu Feb 21 17:28:09 AEDT 2019


Cc: stable
Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
---
 libflash/ipmi-hiomap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libflash/ipmi-hiomap.c b/libflash/ipmi-hiomap.c
index ac47a1005ef8..4ab49d6d0d91 100644
--- a/libflash/ipmi-hiomap.c
+++ b/libflash/ipmi-hiomap.c
@@ -80,6 +80,7 @@ static void ipmi_hiomap_cmd_cb(struct ipmi_msg *msg)
 
 	res->cc = msg->cc;
 	if (msg->cc != IPMI_CC_NO_ERROR) {
+		ipmi_free_msg(msg);
 		return;
 	}
 
-- 
2.19.1



More information about the Skiboot mailing list