ipmi: fix SDR length value
commit792afddb4a5cb2da11a57cfdb124b78981ed1fda
authorCédric Le Goater <clg@fr.ibm.com>
Mon, 25 Jan 2016 14:07:30 +0000 (25 15:07 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 6 Feb 2016 18:44:09 +0000 (6 20:44 +0200)
tree23a05052beec863b5333ce7f3aa12f21d81cc8a0
parent7cfa06a2f1db6fef2be7f645697dbc6c4006324a
ipmi: fix SDR length value

The IPMI BMC simulator populates the SDR table with a set of initial
SDRs. The length of each SDR is taken from the record itself (byte 4)
which does not include the size of the header. But, the full length
(header + data) is required by the sdr_add_entry() routine.

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/ipmi/ipmi_bmc_sim.c