Home Home > GIT Browse > openSUSE-42.3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKernel Build Daemon <kbuild@suse.de>2019-05-17 07:51:58 +0200
committerKernel Build Daemon <kbuild@suse.de>2019-05-17 07:51:58 +0200
commitebb96daac3ba1b984d74c0fa81a442c508133579 (patch)
tree94744c67acca0b1596a63f55031540ce57783673
parentb2050e4613e7ae966ce95dd105b1d46668e9e259 (diff)
parent903076964fabbf4b2a8e8d7750b30e6244b9a215 (diff)
Merge branch 'SLE12-SP3' into openSUSE-42.3
-rw-r--r--drivers/char/ipmi/ipmi_ssif.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c
index ee445aeef882..0713b4ebdea4 100644
--- a/drivers/char/ipmi/ipmi_ssif.c
+++ b/drivers/char/ipmi/ipmi_ssif.c
@@ -698,12 +698,16 @@ static void msg_done_handler(struct ssif_info *ssif_info, int result,
/* End of read */
len = ssif_info->multi_len;
data = ssif_info->data;
- } else if (blocknum != ssif_info->multi_pos) {
+ } else if (blocknum + 1 != ssif_info->multi_pos) {
/*
* Out of sequence block, just abort. Block
* numbers start at zero for the second block,
* but multi_pos starts at one, so the +1.
*/
+ if (ssif_info->ssif_debug & SSIF_DEBUG_MSG)
+ dev_dbg(&ssif_info->client->dev,
+ "Received message out of sequence, expected %u, got %u\n",
+ ssif_info->multi_pos - 1, blocknum);
result = -EIO;
} else {
ssif_inc_stat(ssif_info, received_message_parts);