Skip to content

Commit cfaabae

Browse files
amboarVasant Hegde
authored andcommitted
test-ipmi-hiomap: Ensure the completion code is set
[ Upstream commit 5293333 ] 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> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
1 parent dab1174 commit cfaabae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libflash/test/test-ipmi-hiomap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ void ipmi_queue_msg_sync(struct ipmi_msg *msg)
164164
}
165165
assert(false);
166166
}
167+
168+
msg->cc = cmd->cc;
167169
memcpy(msg->data, &cmd->resp, msg->resp_size);
168170

169171
msg->complete(msg);

0 commit comments

Comments
 (0)