Address an incompatible change to record type 237. Field in offest 0x09 changed from a STRING to a WORD date. This causes the decode of these records to display <BAD INDEX>.
Fixes: cdab638dabb7 ("dmioem: Decode HPE OEM Record 237") == version 1 == The patch addresses both forms of the record. This is accomplished by inferring the size of the offset 0x09 field based upon total record size. === version 2 === To best knowledge firmware was never implemented and released using offset 0x09 as STRING. So, simplify the patch to assume that field at offset 0x09 if present, is WORD date. For clarification, the description table in dmioem.c, shows the date as two BYTE entries: one for year, the other for week. Jerry Hoemann (1): dmioem: HPE OEM Record 237 Firmware change dmioem.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- 2.39.2