[Skiboot] [PATCH v2 08/52] test-ipmi-hiomap: Ensure the completion code is set
Andrew Jeffery
andrew at aj.id.au
Thu Feb 21 17:28:07 AEDT 2019
ipmi_queue_msg_sync() intercepts and implements the IPMI transfers for
the test scenarios. In some scenarios we want to return IPMI error
codes, so make sure the msg->cc field is set.
Cc: stable
Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
---
libflash/test/test-ipmi-hiomap.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libflash/test/test-ipmi-hiomap.c b/libflash/test/test-ipmi-hiomap.c
index e2330fe85486..738352cc89f1 100644
--- a/libflash/test/test-ipmi-hiomap.c
+++ b/libflash/test/test-ipmi-hiomap.c
@@ -164,6 +164,8 @@ void ipmi_queue_msg_sync(struct ipmi_msg *msg)
}
assert(false);
}
+
+ msg->cc = cmd->cc;
memcpy(msg->data, &cmd->resp, msg->resp_size);
msg->complete(msg);
--
2.19.1
More information about the Skiboot
mailing list