]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ipmi: Don't call receive handler in the panic context
authorHidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
Mon, 27 Jul 2015 05:55:16 +0000 (14:55 +0900)
committerCorey Minyard <cminyard@mvista.com>
Thu, 3 Sep 2015 20:02:29 +0000 (15:02 -0500)
commitc49c097610fe1aabf86111297280a718abb5dcc2
treeeb77edc3a4b9f00decae0fb97a591546bbf07bea
parent06e5e345fea8df24b1d935f98741343df4cab664
ipmi: Don't call receive handler in the panic context

Received handlers defined as ipmi_recv_hndl member of struct
ipmi_user_hndl can take a spinlock.  This means that if the kernel
panics while holding the lock, a deadlock may happen on the lock
while flushing queued messages in the panic context.

Calling the receive handler doesn't make much meanings in the panic
context, simply skip it to avoid possible deadlocks.

Signed-off-by: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c