]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ipmi:ssif: Fix handling of multi-part return messages
authorCorey Minyard <cminyard@mvista.com>
Fri, 16 Nov 2018 15:59:21 +0000 (09:59 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Jan 2019 08:37:07 +0000 (09:37 +0100)
commit7c307d3217cd254480dbd483d94b9233564be3f1
tree20ab1dbfe9c31909b67cd0c100e3a6371d4d854b
parent413cb66bbb700adb356b7eb47cc7c843fe20a364
ipmi:ssif: Fix handling of multi-part return messages

commit 7d6380cd40f7993f75c4bde5b36f6019237e8719 upstream.

The block number was not being compared right, it was off by one
when checking the response.

Some statistics wouldn't be incremented properly in some cases.

Check to see if that middle-part messages always have 31 bytes of
data.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: stable@vger.kernel.org # 4.4
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/ipmi/ipmi_ssif.c