ipmi: Disable some operations during a panic
authorCorey Minyard <cminyard@mvista.com>
Thu, 16 Sep 2021 16:36:20 +0000 (11:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:13 +0000 (19:16 +0100)
commit8c379a77ae33619a131c185257b07ab97d444485
tree46770c1171bb20b8d2c33fc7977ada5d0e305668
parent60cbd3e635f05c1133451d2d9d6840e55e676cc3
ipmi: Disable some operations during a panic

[ Upstream commit b36eb5e7b75a756baa64909a176dd4269ee05a8b ]

Don't do kfree or other risky things when oops_in_progress is set.
It's easy enough to avoid doing them

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/ipmi/ipmi_msghandler.c
drivers/char/ipmi/ipmi_watchdog.c