Kamlakant Patel 55be8658c7 ipmi:ssif: compare block number correctly for multi-part return messages
According to ipmi spec, block number is a number that is incremented,
starting with 0, for each new block of message data returned using the
middle transaction.

Here, the 'blocknum' is data[0] which always starts from zero(0) and
'ssif_info->multi_pos' starts from 1.
So, we need to add +1 to blocknum while comparing with multi_pos.

Fixes: 7d6380cd40f79 ("ipmi:ssif: Fix handling of multi-part return messages").
Reported-by: Kiran Kolukuluru <kirank@ami.com>
Signed-off-by: Kamlakant Patel <kamlakantp@marvell.com>
Message-Id: <1556106615-18722-1-git-send-email-kamlakantp@marvell.com>
[Also added a debug log if the block numbers don't match.]
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: stable@vger.kernel.org # 4.4
2019-04-24 09:36:42 -05:00
..
2019-03-06 09:41:12 -08:00
2018-03-14 19:13:47 +01:00
2018-06-05 11:24:55 -07:00
2019-02-26 12:53:55 +01:00
2019-01-22 10:21:45 +01:00
2018-05-16 07:23:35 +02:00
2019-01-22 10:21:45 +01:00
2016-01-22 18:04:28 -05:00
2018-06-12 16:19:22 -07:00
2019-01-01 13:24:31 -08:00