diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2019-02-21 16:58:09 +1030 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-02-24 17:43:10 -0600 |
commit | 1b3a5dfbdf924e5c1f0c4f5401eb4535cd2d8d41 (patch) | |
tree | cb903b91054ed780b42c63d66ee81513f6d41367 /libflash | |
parent | f46ed4f7ee79f7093c3a8d494052f5d8656e6101 (diff) | |
download | talos-skiboot-1b3a5dfbdf924e5c1f0c4f5401eb4535cd2d8d41.tar.gz talos-skiboot-1b3a5dfbdf924e5c1f0c4f5401eb4535cd2d8d41.zip |
libflash/ipmi-hiomap: Fix leak of msg in callback
Cc: stable
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'libflash')
-rw-r--r-- | libflash/ipmi-hiomap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libflash/ipmi-hiomap.c b/libflash/ipmi-hiomap.c index ac47a100..4ab49d6d 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; } |