diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2017-12-06 12:25:44 +0300 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2017-12-11 16:43:26 +0300 |
commit | 51614b26a029515dd3bc43a8c0e16a9ee51bbf52 (patch) | |
tree | 5c584225fb607b2e8fc67ba04380812e05fdcc41 /drivers/char/ipmi | |
parent | 1ac8aa8d0568606485451ea860a6c6c3fad0d42d (diff) | |
download | linux-51614b26a029515dd3bc43a8c0e16a9ee51bbf52.tar.xz |
ipmi_si: fix crash on parisc
This patch fixes ipmi crash on parisc introduced in the kernel 4.15-rc.
The pointer io.io_setup is not initialized and thus it causes crash in
try_smi_init when attempting to call new_smi->io.io_setup.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_parisc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_si_parisc.c b/drivers/char/ipmi/ipmi_si_parisc.c index 090b073ab441..6b10f0e18a95 100644 --- a/drivers/char/ipmi/ipmi_si_parisc.c +++ b/drivers/char/ipmi/ipmi_si_parisc.c @@ -10,6 +10,8 @@ static int __init ipmi_parisc_probe(struct parisc_device *dev) { struct si_sm_io io; + memset(&io, 0, sizeof(io)); + io.si_type = SI_KCS; io.addr_source = SI_DEVICETREE; io.addr_type = IPMI_MEM_ADDR_SPACE; |