mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 02:57:22 +00:00
- In function ipmi_sdr_add_record, there is a missing '<' in the calculation of the in progress bit in order to determine when a Partial Add SDR entry is terminated. This cause the IPMI firmware to simply drop the SDR (required by the spec).
This commit is contained in:
parent
a3dd05510a
commit
ebb60eebee
@ -141,7 +141,9 @@ ipmi_sdr_add_record(struct ipmi_intf *intf, struct sdr_record_list *sdrr)
|
|||||||
while (i < len) {
|
while (i < len) {
|
||||||
int data_len = 0;
|
int data_len = 0;
|
||||||
|
|
||||||
if (len - i < sdr_max_write_len) {
|
/* JMA - Add = here since it was not setting the bit when lenght was fitting
|
||||||
|
boundary. This was causing some sensors to be rejected from SDRR */
|
||||||
|
if (len - i <= sdr_max_write_len) {
|
||||||
/* last crunch */
|
/* last crunch */
|
||||||
data_len = len - i;
|
data_len = len - i;
|
||||||
sdr_rq->in_progress = LAST_RECORD;
|
sdr_rq->in_progress = LAST_RECORD;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user