diff mbox series

[07/51] test-ipmi-hiomap: Ensure the completion code is set

Message ID 20190215065708.6086-8-andrew@aj.id.au
State Changes Requested
Headers show
Series ipmi-hiomap: Tests and fixes for event handling | expand

Commit Message

Andrew Jeffery Feb. 15, 2019, 6:56 a.m. UTC
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
 libflash/test/test-ipmi-hiomap.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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);