diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2015-09-04 16:55:06 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-09-08 20:27:22 +1000 |
commit | 3066b4a07b5e83a868718f0bffbacfea19a89d44 (patch) | |
tree | 321c0cd86213e3f6aeac728ffeb461015b2f996b | |
parent | 32dd420d63525411bb1fd55be7865952527d6326 (diff) | |
download | skiboot-3066b4a07b5e83a868718f0bffbacfea19a89d44.zip skiboot-3066b4a07b5e83a868718f0bffbacfea19a89d44.tar.gz skiboot-3066b4a07b5e83a868718f0bffbacfea19a89d44.tar.bz2 |
IPMI: Fix corner case eSEL logging issue
eSEL logging fails, if eSEL event size is multiples of IPMI
buffer size.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | hw/ipmi/ipmi-sel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c index 343ca02..d711a1a 100644 --- a/hw/ipmi/ipmi-sel.c +++ b/hw/ipmi/ipmi-sel.c @@ -312,7 +312,7 @@ static void ipmi_elog_poll(struct ipmi_msg *msg) return; } - if ((esel_size - esel_index) < (IPMI_MAX_REQ_SIZE - ESEL_HDR_SIZE)) { + if ((esel_size - esel_index) <= (IPMI_MAX_REQ_SIZE - ESEL_HDR_SIZE)) { /* Last data to send */ msg->data[6] = 1; req_size = esel_size - esel_index + ESEL_HDR_SIZE; |