From: Ross Philipson Date: Tue, 8 Sep 2009 19:41:17 +0000 (-0400) Subject: Fix code that is corrupting smbios type 2 information. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=54acf54f32bcfe7881520c55e7387c7da82ba0e1;p=xenclient%2Fxen-pq.git Fix code that is corrupting smbios type 2 information. Changes to be committed: modified: master/smbios --- 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 */