From 3066b4a07b5e83a868718f0bffbacfea19a89d44 Mon Sep 17 00:00:00 2001 From: Vasant Hegde Date: Fri, 4 Sep 2015 16:55:06 +0530 Subject: 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 Signed-off-by: Stewart Smith --- hw/ipmi/ipmi-sel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/ipmi') 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; -- cgit v1.1