summaryrefslogtreecommitdiffstats
path: root/sensorhandler.cpp
diff options
context:
space:
mode:
authorEmily Shaffer <emilyshaffer@google.com>2017-08-15 11:17:17 -0700
committerPatrick Williams <patrick@stwcx.xyz>2017-08-16 03:39:28 +0000
commit5a5a62826f3fceec375b84d8c211b7e43c50c9e6 (patch)
treeaf11d981aa3336afa58f134bcefc89bf8d973f45 /sensorhandler.cpp
parent6c50ad9d29672a64ad97348938c7866370d74841 (diff)
downloadphosphor-host-ipmid-5a5a62826f3fceec375b84d8c211b7e43c50c9e6.tar.gz
phosphor-host-ipmid-5a5a62826f3fceec375b84d8c211b7e43c50c9e6.zip
sensorhandler: correctly report data length in Reserve SDR
Change-Id: I30a2641dcb548a3ff5141f7688942a748c458070 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Diffstat (limited to 'sensorhandler.cpp')
-rw-r--r--sensorhandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sensorhandler.cpp b/sensorhandler.cpp
index d8cd0d4..53eb6d6 100644
--- a/sensorhandler.cpp
+++ b/sensorhandler.cpp
@@ -639,6 +639,7 @@ ipmi_ret_t ipmi_sen_reserve_sdr(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
// A constant reservation ID is okay until we implement add/remove SDR.
const uint16_t reservation_id = 1;
*(uint16_t*)response = reservation_id;
+ *data_len = sizeof(uint16_t);
printf("Created new IPMI SDR reservation ID %d\n", *(uint16_t*)response);
return IPMI_CC_OK;
OpenPOWER on IntegriCloud