summaryrefslogtreecommitdiff
path: root/dmidecode.c
diff options
context:
space:
mode:
authorkhali <khali>2008-11-14 10:27:31 +0000
committerkhali <khali>2008-11-14 10:27:31 +0000
commit4d21a1e92483cdc021a994fe84975df716dbb96c (patch)
tree3c038e7bcc4df3abaa00047bb7042a9e71cb3b27 /dmidecode.c
parentd9f05738cae9e1bd6659b87dc0d0eae1ebc31e62 (diff)
downloaddmidecode-4d21a1e92483cdc021a994fe84975df716dbb96c.tar.gz
Handle chassis information records of size 19 (DMI type 3).
Diffstat (limited to 'dmidecode.c')
-rw-r--r--dmidecode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dmidecode.c b/dmidecode.c
index dbcb11d..ada907c 100644
--- a/dmidecode.c
+++ b/dmidecode.c
@@ -3056,13 +3056,14 @@ static void dmi_decode(const struct dmi_header *h, u16 ver)
if (h->length < 0x11) break;
printf("\tOEM Information: 0x%08X\n",
DWORD(data + 0x0D));
- if (h->length < 0x15) break;
+ if (h->length < 0x13) break;
printf("\tHeight:");
dmi_chassis_height(data[0x11]);
printf("\n");
printf("\tNumber Of Power Cords:");
dmi_chassis_power_cords(data[0x12]);
printf("\n");
+ if (h->length < 0x15) break;
if (h->length < 0x15 + data[0x13] * data[0x14]) break;
dmi_chassis_elements(data[0x13], data[0x14], data + 0x15, "\t");
break;