Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
ipmitool.3806
fix_first_two_bytes_of_dumped_raw_SDR_data.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_first_two_bytes_of_dumped_raw_SDR_data.patch of Package ipmitool.3806
From: Puwen <puwen.hsiao@gmail.com> Subject: ID:427 - The first two bytes of dumped raw SDR data is wrong. References: bsc#1011283 Patch-Mainline: IPMITOOL_1_8_17 Git-commit: a6a67e5e9cedbc5318b737f0c18690c1f134b13a Git-repo: git.code.sf.net/p/ipmitool/source Signed-off-by: Thomas Renninger <trenn@suse.de> When we dumped the raw SDR data, the first Record ID will overwrite by 0x0000 diff --git a/lib/ipmi_sdr.c b/lib/ipmi_sdr.c index 3bebbb7..502e547 100644 --- a/lib/ipmi_sdr.c +++ b/lib/ipmi_sdr.c @@ -867,7 +867,15 @@ ipmi_sdr_get_header(struct ipmi_intf *intf, struct ipmi_sdr_iterator *itr) * completion code CBh = "Requested Sensor, data, or record * not present" */ - if (sdr_rs.id != itr->next) { + /***************************************************************** + * Need to add one conditional statement for First Record ID 0x0000 + * IPMI v2.0 Spec, Section 33.12 + * If ‘Record ID’ is specified as 0000h, this command returns + * the Record Header for the ‘first’ SDR in the repository. + * Therefore the Record ID will not equal + ******************************************************************/ + if ((itr->next != 0x0000) && + (sdr_rs.id != itr->next)) { lprintf(LOG_DEBUG, "SDR record id mismatch: 0x%04x", sdr_rs.id); sdr_rs.id = itr->next; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor