ipmi: Fix failure on SMBIOS specified devices
authorCorey Minyard <cminyard@mvista.com>
Tue, 16 Apr 2019 21:26:45 +0000 (16:26 -0500)
committerCorey Minyard <cminyard@mvista.com>
Tue, 16 Apr 2019 21:36:47 +0000 (21:36 +0000)
An extra memset was put into a place that cleared the interface
type.

Reported-by: Tony Camuso <tcamuso@redhat.com>
Fixes: 3cd83bac481dc4 ("ipmi: Consolidate the adding of platform devices")
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_dmi.c

index ff0b199be4729757743bbd72bff2fc61a842d291..f2411468f33ff44707e45ab34cd359d2c3b5a0f0 100644 (file)
@@ -66,7 +66,6 @@ static void __init dmi_add_platform_ipmi(unsigned long base_addr,
                return;
        }
 
-       memset(&p, 0, sizeof(p));
        p.addr = base_addr;
        p.space = space;
        p.regspacing = offset;