Files
linux/drivers/char
Corey Minyard d4748643fc 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>
2023-06-29 09:26:18 +09:00
..
2013-05-05 00:11:29 -04:00
2016-07-14 16:21:53 +09:00
2013-02-22 23:31:31 -05:00
2011-03-31 11:26:23 -03:00
2023-05-15 14:34:59 +09:00
2013-02-22 23:31:31 -05:00
2023-05-15 16:16:41 +09:00
2016-01-22 18:04:28 -05:00
2011-01-10 08:51:44 -08:00