diff options
author | Kamlakant Patel <[email protected]> | 2019-04-24 11:50:43 +0000 |
---|---|---|
committer | Corey Minyard <[email protected]> | 2019-04-24 09:36:42 -0500 |
commit | 55be8658c7e2feb11a5b5b33ee031791dbd23a69 (patch) | |
tree | 7789ee60196734f7a83d6b2e1238b41d81581ef9 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d73236383eb1cd4b7b65c33a09f0ed45f6781f40 (diff) |
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 <[email protected]>
Signed-off-by: Kamlakant Patel <[email protected]>
Message-Id: <[email protected]>
[Also added a debug log if the block numbers don't match.]
Signed-off-by: Corey Minyard <[email protected]>
Cc: [email protected] # 4.4
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions