]> git.baikalelectronics.ru Git - 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)
committerCorey Minyard <cminyard@mvista.com>
Wed, 23 Jan 2019 16:44:23 +0000 (10:44 -0600)
commitf9d48db2bc07baf341cd28b914fd8b5c529b7e3f
treef91263c6a51dd0a7f796ff2ec8d0cfb83b33f407
parentee0a4582a7ef0c136ec38b7c202ed53a10f4f9c0
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