From 7f414dbb7f7851eccbe98875b1a2cb155b592f3e Mon Sep 17 00:00:00 2001 From: Alistair Popple Date: Mon, 15 Sep 2014 10:58:08 +1000 Subject: ipmi/bt: Improve message validation and allow out-of-order command responses This patch adds validation of the ipmi cmd and netfn numbers returned by the bmc. It also ensures the sequence number is correct by searching the outstanding message queue for the corresponding sequence number. Signed-off-by: Alistair Popple Signed-off-by: Benjamin Herrenschmidt --- include/ipmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ipmi.h') diff --git a/include/ipmi.h b/include/ipmi.h index 6a438fb..9543515 100644 --- a/include/ipmi.h +++ b/include/ipmi.h @@ -151,7 +151,7 @@ struct ipmi_msg *ipmi_mkmsg(int interface, uint32_t code, int ipmi_queue_msg(struct ipmi_msg *msg); /* Process a completed message */ -void ipmi_cmd_done(struct ipmi_msg *msg); +void ipmi_cmd_done(uint8_t cmd, uint8_t netfn, uint8_t cc, struct ipmi_msg *msg); /* 28.3 Chassis Control Command. Changes the power state of the P8. */ int ipmi_chassis_control(uint8_t request); -- cgit v1.1