diff options
author | nichole <Nichole_Wang@wistron.com> | 2020-06-16 09:23:24 +0800 |
---|---|---|
committer | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2020-06-23 16:06:12 +0530 |
commit | d2b05d058be1b277c1ab1e2a97ce49b8869bf19e (patch) | |
tree | 15a0e40f2ab802682ae6ad208dd4937a96dafe13 | |
parent | a91e6b0ec0c324d67ab53e8ca5fdbe9bbf487389 (diff) | |
download | skiboot-d2b05d058be1b277c1ab1e2a97ce49b8869bf19e.zip skiboot-d2b05d058be1b277c1ab1e2a97ce49b8869bf19e.tar.gz skiboot-d2b05d058be1b277c1ab1e2a97ce49b8869bf19e.tar.bz2 |
platform/mihawk: Fix IPMI double-free
[ Upstream commit 68dc040a6540c218d20517764ff5d740a3626c55 ]
The commit 6826095 ("platform/mihawk: support dynamic PCIe slot table")
added the IPMI OEM command to communicate with BMC. We do the
ipmi_free_msg(msg) twice that caused the Fast-reboot fail.
This patch fixes it by removing the IPMI double-free bug to restore
Fast-reboot.
Signed-off-by: Nichole Wang <Nichole_Wang@wistron.com>
Cc: skiboot-stable@lists.ozlabs.org # skiboot-6.6.x
Cc: skiboot-stable@lists.ozlabs.org # skiboot-op940.x
Fixes: commit 6826095 ("platform/mihawk: support dynamic PCIe slot table")
Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
-rw-r--r-- | platforms/astbmc/mihawk.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/platforms/astbmc/mihawk.c b/platforms/astbmc/mihawk.c index f3669ff..54c2884 100644 --- a/platforms/astbmc/mihawk.c +++ b/platforms/astbmc/mihawk.c @@ -533,8 +533,6 @@ static void mihawk_init(void) if (timeout_ms == 0) break; } - - ipmi_free_msg(ipmi_msg); } prlog(PR_DEBUG, "Mihawk: IPMI_RISERF_QUERY finish. riser_state: %02x" |