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)
committerCorey Minyard <cminyard@mvista.com>
Wed, 23 Jan 2019 16:44:23 +0000 (10:44 -0600)
commit7d6380cd40f7993f75c4bde5b36f6019237e8719
treef91263c6a51dd0a7f796ff2ec8d0cfb83b33f407
parent7b55851367136b1efd84d98fea81ba57a98304cf
ipmi:ssif: Fix handling of multi-part return messages

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
drivers/char/ipmi/ipmi_ssif.c