]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit4c0c2dcb25594f994a09b7f702631a1318bf6f41
tree19e967971e18a5ba4217f37da71c9d9544b4764b
parentb8f7fa9746db10d59398608af23ea9e95bec2b08
ipmi:ssif: Fix handling of multi-part return messages

BugLink: https://bugs.launchpad.net/bugs/1837477
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/char/ipmi/ipmi_ssif.c