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
This commit is contained in:
Allan Jude 2021-02-18 15:48:01 +00:00
parent 37ef8d4cd6
commit 8c280db0b4

View File

@ -297,7 +297,7 @@ ssif_polled_request(struct ipmi_softc *sc, struct ipmi_request *req)
len += count - 1;
/* If this was the last block we are done. */
if (ssif_buf[0] != 0xff)
if (ssif_buf[0] == 0xff)
break;
block++;
}