diff options
author | Corey Minyard <cminyard@mvista.com> | 2022-04-01 07:44:53 -0500 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2022-05-12 10:00:03 -0500 |
commit | 7602b957e2404e5f98d9a40b68f1fd27f0028712 (patch) | |
tree | f8cee97a9550d910611bf4c36197ae8ab3d30299 /drivers/platform/surface/aggregator/controller.c | |
parent | 0924c5a0cbed5831a2a0ff2f9a19692265f1ab92 (diff) |
ipmi:ssif: Check for NULL msg when handling events and messages
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>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions