diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2019-02-21 16:58:07 +1030 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-02-21 22:58:46 -0600 |
commit | 5293333dd1afb0a1abd355df75a163812e8e196a (patch) | |
tree | 8e440e29031fd6bc889292fa958ce162371a28dd /libflash/test | |
parent | f246cceda717385be6131078a4077e3671dc6d1f (diff) | |
download | skiboot-5293333dd1afb0a1abd355df75a163812e8e196a.zip skiboot-5293333dd1afb0a1abd355df75a163812e8e196a.tar.gz skiboot-5293333dd1afb0a1abd355df75a163812e8e196a.tar.bz2 |
test-ipmi-hiomap: Ensure the completion code is set
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@aj.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'libflash/test')
-rw-r--r-- | libflash/test/test-ipmi-hiomap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libflash/test/test-ipmi-hiomap.c b/libflash/test/test-ipmi-hiomap.c index e2330fe..738352c 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); |