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:42:55 +0000 (09:42 +0100)
commitcd2402db92cea431e681a0996cf79d3808173d21
treef08f4082fa01493eaafad4a0cc0455d9d58371ca
parentde614973ee159fef48ca6255a7324cb64ea31f44
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