File dmidecode-05-use-dword-for-structure-table-maximum-size-in-smbios3.patch of Package dmidecode.28672

From: Xie XiuQi <xiexiuqi@huawei.com>
Date: Mon, 1 Feb 2016 09:30:31 +0100
Subject: Use DWORD for Structure table maximum size in SMBIOS3
Git-commit: ab02b117511230e46bbef7febbd854b9c832c13c

0Ch DWORD "Structure table maximum size"

Maximum size of SMBIOS Structure Table, pointed to by
the Structure Table Address, in bytes. The actual size is
guaranteed to be less or equal to the maximum size.

Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>

---
 dmidecode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- dmidecode-3.0.orig/dmidecode.c	2016-05-03 16:05:10.336907916 +0200
+++ dmidecode-3.0/dmidecode.c	2016-05-03 16:05:11.533919057 +0200
@@ -4612,7 +4612,7 @@ static int smbios3_decode(u8 *buf, const
 	}
 
 	dmi_table(((off_t)offset.h << 32) | offset.l,
-		  WORD(buf + 0x0C), 0, ver, devmem, flags | FLAG_STOP_AT_EOT);
+		  DWORD(buf + 0x0C), 0, ver, devmem, flags | FLAG_STOP_AT_EOT);
 
 	if (opt.flags & FLAG_DUMP_BIN)
 	{
openSUSE Build Service is sponsored by