Record type depricated for Gen9.  If record number reused in future,
it will have a different decoding.

Signed-off-by: Jerry Hoemann <jerry.hoem...@hpe.com>
---
 dmioem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dmioem.c b/dmioem.c
index 3ada0cb..ce24833 100644
--- a/dmioem.c
+++ b/dmioem.c
@@ -966,6 +966,7 @@ static int dmi_decode_hp(const struct dmi_header *h)
                         *
                         * Source: hpwdt kernel driver
                         */
+                       if (gen >= G9) return 0;
                        pr_handle_name("%s 64-bit CRU Information", company);
                        if (h->length < 0x18) break;
                        if (is_printable(data + 0x04, 4))
-- 
2.39.2


Reply via email to