]> xenbits.xensource.com Git - xenclient/xen-pq.git/commitdiff
Fix code that is corrupting smbios type 2 information.
authorRoss Philipson <ross.philipson@citrix.com>
Tue, 8 Sep 2009 19:41:17 +0000 (15:41 -0400)
committerRoss Philipson <ross.philipson@citrix.com>
Tue, 8 Sep 2009 19:41:17 +0000 (15:41 -0400)
 Changes to be committed:
modified:   master/smbios

master/smbios

index d53ea937d29c1e2f20fc79c7f7c5ef78f58975bf..1c33da41a37e36e3826a6bf0030f3997264380de 100644 (file)
@@ -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 */