Skip to content

Commit

Permalink
ipmi_si: fix crash on parisc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mikulas Patocka authored and cminyard committed Dec 11, 2017
1 parent 1ac8aa8 commit 51614b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/char/ipmi/ipmi_si_parisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 51614b2

Please sign in to comment.