aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Jude <allanjude@FreeBSD.org>2021-02-18 15:48:01 +0000
committerAllan Jude <allanjude@FreeBSD.org>2021-02-18 15:48:01 +0000
commit8c280db0b4d22ad92152bf05f941201428c80b87 (patch)
tree4cf13ddd038116fb11a86c40d640ba66bf1b1349
parent37ef8d4cd6b570c0882e97826df961a5d6003d07 (diff)
downloadsrc-8c280db0b4d22ad92152bf05f941201428c80b87.tar.gz
src-8c280db0b4d22ad92152bf05f941201428c80b87.zip
ipmi_ssif: Fix inverted for the end of multi-part reads
As per Intelligent Platform Management Interface Specification v2.0 rev. 1.1, section 12.5: SSIF Multi-part Read Transactions Sponsored by: Ampere Computing LLC Submitted by: Klara Inc. Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D28749
-rw-r--r--sys/dev/ipmi/ipmi_ssif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ipmi/ipmi_ssif.c b/sys/dev/ipmi/ipmi_ssif.c
index 197c317dcc09..e761cfdeb081 100644
--- a/sys/dev/ipmi/ipmi_ssif.c
+++ b/sys/dev/ipmi/ipmi_ssif.c
@@ -297,7 +297,7 @@ read_start:
len += count - 1;
/* If this was the last block we are done. */
- if (ssif_buf[0] != 0xff)
+ if (ssif_buf[0] == 0xff)
break;
block++;
}