From 4dae08142020c6a787edca246244aa744a986710 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sat, 19 Jan 2019 09:36:49 +0200 Subject: 10667 ipmi: NULL pointer errors Reviewed by: Gergő Doma Reviewed by: Andy Stormont Approved by: Richard Lowe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/uts/intel/io/ipmi/ipmi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/src/uts/intel/io/ipmi/ipmi_main.c') diff --git a/usr/src/uts/intel/io/ipmi/ipmi_main.c b/usr/src/uts/intel/io/ipmi/ipmi_main.c index 1879564149..8b25829d2b 100644 --- a/usr/src/uts/intel/io/ipmi/ipmi_main.c +++ b/usr/src/uts/intel/io/ipmi/ipmi_main.c @@ -89,7 +89,7 @@ get_smbios_ipmi_info(void) * it is not installed. In this case we see 0x0 as the base address. * If we see this address, assume the device is not really present. */ - if (ipmi.smbip_addr == NULL) { + if (ipmi.smbip_addr == 0) { cmn_err(CE_WARN, "!SMBIOS: Invalid base address"); return (DDI_FAILURE); } -- cgit v1.2.3