linux-stable/drivers/char
Corey Minyard e3d0eb39cf ipmi:ssif: Check for NULL msg when handling events and messages
[ Upstream commit 7602b957e2 ]

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:53:45 +02:00
..
agp parisc/agp: Annotate parisc agp init functions with __init 2021-12-22 09:17:58 +01:00
hw_random hwrng: atmel - disable trng on failure path 2022-04-20 09:08:13 +02:00
ipmi ipmi:ssif: Check for NULL msg when handling events and messages 2022-06-14 16:53:45 +02:00
mwave char/mwave: Adjust io port register size 2022-01-27 09:00:52 +01:00
pcmcia char: pcmcia: error out if 'num_bytes_read' is greater than 4 in set_protocol() 2021-07-20 16:17:40 +02:00
tpm tpm: ibmvtpm: Correct the return value in tpm_ibmvtpm_probe() 2022-06-06 08:20:57 +02:00
xilinx_hwicap
xillybus
Kconfig tty: mark Siemens R3964 line discipline as BROKEN 2019-04-17 08:37:44 +02:00
Makefile
apm-emulation.c
applicom.c applicom: Fix potential Spectre v1 vulnerabilities 2019-03-13 14:03:10 -07:00
applicom.h
bfin-otp.c
bsr.c
ds1302.c
ds1620.c
dsp56k.c
dtlk.c
efirtc.c
generic_nvram.c
hangcheck-timer.c
hpet.c char: hpet: add checks after calling ioremap 2021-06-03 08:36:21 +02:00
lp.c
mbcs.c
mbcs.h
mem.c /dev/mem: Bail out upon SIGKILL. 2019-10-05 12:48:11 +02:00
misc.c
mspec.c
nsc_gpio.c
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
pc8736x_gpio.c
powernv-op-panel.c
ppdev.c ppdev: fix PPGETTIME/PPSETTIME ioctls 2019-12-17 20:39:39 +01:00
ps3flash.c
random.c random: fix data race on crng init time 2022-01-27 09:00:46 +01:00
raw.c
rtc.c
scx200_gpio.c
snsc.c
snsc.h
snsc_event.c
sonypi.c
tb0219.c
tile-srom.c
tlclk.c drivers: char: tlclk.c: Avoid data race between init and interrupt handler 2020-10-01 13:12:42 +02:00
toshiba.c
ttyprintk.c ttyprintk: Add TTY hangup callback. 2021-05-22 10:57:30 +02:00
uv_mmtimer.c
virtio_console.c virtio_console: eliminate anonymous module_init & module_exit 2022-04-20 09:08:28 +02:00