diff options
author | Corey Minyard <cminyard@mvista.com> | 2022-04-19 19:08:09 +0200 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2022-04-29 17:06:37 +0200 |
commit | 3d092ef09303e615707dc5755cf0e29b4df7555f (patch) | |
tree | ed631dabd061fd7ad21f0790bac1da99e0dc5a47 /drivers/char/ipmi | |
parent | mm: kfence: fix missing objcg housekeeping for SLAB (diff) | |
download | linux-3d092ef09303e615707dc5755cf0e29b4df7555f.tar.xz linux-3d092ef09303e615707dc5755cf0e29b4df7555f.zip |
ipmi: When handling send message responses, don't process the message
A chunk was dropped when the code handling send messages was rewritten.
Those messages shouldn't be processed normally, they are just an
indication that the message was successfully sent and the timers should
be started for the real response that should be coming later.
Add back in the missing chunk to just discard the message and go on.
Fixes: 059747c245f0 ("ipmi: Add support for IPMB direct messages")
Reported-by: Joe Wiese <jwiese@rackspace.com>
Cc: stable@vger.kernel.org # v5.16+
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Tested-by: Joe Wiese <jwiese@rackspace.com>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_msghandler.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index c59265146e9c..5f7abf456a17 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c @@ -4518,6 +4518,8 @@ return_unspecified: } else /* The message was sent, start the timer. */ intf_start_seq_timer(intf, msg->msgid); + requeue = 0; + goto out; } else if (((msg->rsp[0] >> 2) != ((msg->data[0] >> 2) | 1)) || (msg->rsp[1] != msg->data[1])) { /* |