From 54acf54f32bcfe7881520c55e7387c7da82ba0e1 Mon Sep 17 00:00:00 2001 From: Ross Philipson Date: Tue, 8 Sep 2009 15:41:17 -0400 Subject: [PATCH] Fix code that is corrupting smbios type 2 information. Changes to be committed: modified: master/smbios --- master/smbios | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master/smbios b/master/smbios index d53ea93..1c33da4 100644 --- a/master/smbios +++ b/master/smbios @@ -361,7 +361,7 @@ diff -r 13fe7f07df15 tools/firmware/hvmloader/smbios.c + p->header.handle = 0x200; + /* NOTE: if this code is enhanced to allow multiple instances of some tables like + this one, chassis info, etc. then work will have to be done to match these handles */ -+ if (header->sm_length >= 13) { ++ if (p->header.length >= 13) { + bptr = ((uint8_t*)start) + 11; + if (*((uint16_t*)bptr) != 0) + *((uint16_t*)bptr) = 0x300; /* current chassis handle */ -- 2.39.5