diff options
author | Jia, Chunhui <chunhui.jia@intel.com> | 2019-02-28 14:14:27 +0800 |
---|---|---|
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | 2019-03-04 16:05:02 +0000 |
commit | 7cf145f3dbe6875fa4bfc663a6de192616d06db1 (patch) | |
tree | 5c6acea715bf3b9e34d24e0c611d67419a9f0690 /chassishandler.cpp | |
parent | fe6c655860641696ddad96f24de92001ab3459ff (diff) | |
download | phosphor-host-ipmid-7cf145f3dbe6875fa4bfc663a6de192616d06db1.tar.gz phosphor-host-ipmid-7cf145f3dbe6875fa4bfc663a6de192616d06db1.zip |
Extra Bytes in response data for chassis Identify command
From IPMI spec, response should be complete code only.
Tested:
ipmitool raw 0x00 0x04 0x02 0x00
Change-Id: I48a9f71e01c89ee1125d515c50e3e2655510d0ce
Signed-off-by: Jia, Chunhui <chunhui.jia@linux.intel.com>
Diffstat (limited to 'chassishandler.cpp')
-rw-r--r-- | chassishandler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chassishandler.cpp b/chassishandler.cpp index c9885bd..c955658 100644 --- a/chassishandler.cpp +++ b/chassishandler.cpp @@ -1223,6 +1223,7 @@ ipmi_ret_t ipmi_chassis_identify(ipmi_netfn_t netfn, ipmi_cmd_t cmd, ? (static_cast<uint8_t*>(request))[forceIdentifyPos] & 0x01 : false; + *data_len = 0; // response have complete code only if (identifyInterval || forceIdentify) { // stop the timer if already started, for force identify we should |