diff mbox series

IPMI: Fix platform.cec_reboot() null ptr checks

Message ID 20171206001233.28188-1-mikey@neuling.org
State Accepted
Headers show
Series IPMI: Fix platform.cec_reboot() null ptr checks | expand

Commit Message

Michael Neuling Dec. 6, 2017, 12:12 a.m. UTC
Kudos to Hugo Landau who reported this in:
  https://github.com/open-power/skiboot/issues/142

Reported-by: Hugo Landau <hlandau@devever.net>
Signed-off-by: Michael Neuling <mikey@neuling.org>
---
 hw/ipmi/ipmi-attn.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Stewart Smith Dec. 19, 2017, 12:27 a.m. UTC | #1
Michael Neuling <mikey@neuling.org> writes:
> Kudos to Hugo Landau who reported this in:
>   https://github.com/open-power/skiboot/issues/142
>
> Reported-by: Hugo Landau <hlandau@devever.net>
> Signed-off-by: Michael Neuling <mikey@neuling.org>
> ---
>  hw/ipmi/ipmi-attn.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Thanks, merged to master as of 852ff7e210b29c8b96450d5aa02c00542041a451
diff mbox series

Patch

diff --git a/hw/ipmi/ipmi-attn.c b/hw/ipmi/ipmi-attn.c
index ef7153ed7c..8ff872c626 100644
--- a/hw/ipmi/ipmi-attn.c
+++ b/hw/ipmi/ipmi-attn.c
@@ -67,7 +67,7 @@  void __attribute__((noreturn)) ipmi_terminate(const char *msg)
 {
 	/* Terminate called before initializing IPMI (early abort) */
 	if (!ipmi_present()) {
-		if (platform.cec_reboot())
+		if (platform.cec_reboot)
 			platform.cec_reboot();
 		goto out;
 	}
@@ -76,7 +76,7 @@  void __attribute__((noreturn)) ipmi_terminate(const char *msg)
 	ipmi_log_terminate_event(msg);
 
 	/* Reboot call */
-	if (platform.cec_reboot())
+	if (platform.cec_reboot)
 		platform.cec_reboot();
 
 out: