summaryrefslogtreecommitdiff
path: root/dmidecode.c
diff options
context:
space:
mode:
authorkhali <khali>2008-11-07 10:15:45 +0000
committerkhali <khali>2008-11-07 10:15:45 +0000
commitad538c4207a3d3dc0230fed6be0d6c757cbfc645 (patch)
treee37651cec6a9506b1dc780d153945c399b1159ee /dmidecode.c
parent796d8b35e30c0c3eb221defcc2316dd23808beb1 (diff)
downloaddmidecode-ad538c4207a3d3dc0230fed6be0d6c757cbfc645.tar.gz
Handle base board information records of size 9 (DMI type 2).
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 53b6e81..640b660 100644
--- a/dmidecode.c
+++ b/dmidecode.c
@@ -2969,9 +2969,10 @@ static void dmi_decode(const struct dmi_header *h, u16 ver)
dmi_string(h, data[0x06]));
printf("\tSerial Number: %s\n",
dmi_string(h, data[0x07]));
- if (h->length < 0x0A) break;
+ if (h->length < 0x09) break;
printf("\tAsset Tag: %s\n",
dmi_string(h, data[0x08]));
+ if (h->length < 0x0A) break;
printf("\tFeatures:");
dmi_base_board_features(data[0x09], "\t\t");
if (h->length < 0x0F) break;