android_kernel_xiaomi_sm7250/drivers/char/ipmi
Corey Minyard aca1b19df1 ipmi:ssif: Check for NULL msg when handling events and messages
[ Upstream commit 7602b957e2404e5f98d9a40b68f1fd27f0028712 ]

Even though it's not possible to get into the SSIF_GETTING_MESSAGES and
SSIF_GETTING_EVENTS states without a valid message in the msg field,
it's probably best to be defensive here and check and print a log, since
that means something else went wrong.

Also add a default clause to that switch statement to release the lock
and print a log, in case the state variable gets messed up somehow.

Reported-by: Haowen Bai <baihaowen@meizu.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 16:59:16 +02:00
..
bt-bmc.c
ipmi_bt_sm.c
ipmi_devintf.c
ipmi_dmi.c
ipmi_dmi.h
ipmi_kcs_sm.c
ipmi_msghandler.c ipmi: fix initialization when workqueue allocation fails 2021-12-29 12:20:46 +01:00
ipmi_powernv.c
ipmi_poweroff.c
ipmi_si_hardcode.c
ipmi_si_hotmod.c
ipmi_si_intf.c
ipmi_si_mem_io.c
ipmi_si_parisc.c
ipmi_si_pci.c pci:ipmi: Move IPMI PCI class id defines to pci_ids.h 2020-06-22 09:05:23 +02:00
ipmi_si_platform.c
ipmi_si_port_io.c
ipmi_si_sm.h
ipmi_si.h
ipmi_smic_sm.c
ipmi_ssif.c ipmi:ssif: Check for NULL msg when handling events and messages 2022-06-14 16:59:16 +02:00
ipmi_watchdog.c ipmi/watchdog: Stop watchdog timer when the current action is 'none' 2021-07-20 16:16:05 +02:00
Kconfig
kcs_bmc_aspeed.c
kcs_bmc_npcm7xx.c
kcs_bmc.c
kcs_bmc.h
Makefile