925fc78f0a
Add "--no-sysfs" option description to -h output. - dmidecode-02-fix-no-smbios-nor-dmi-entry-point-found-on-smbios3.patch: Fix 'No SMBIOS nor DMI entry point found' on SMBIOS3. - dmidecode-03-let-read_file-return-the-actual-data-size.patch: Let read_file return the actual data size. - dmidecode-04-use-read_file-to-read-the-dmi-table-from-sysfs.patch: Use read_file() to read the DMI table from sysfs. https://savannah.nongnu.org/bugs/?46176 - dmidecode-05-use-dword-for-structure-table-maximum-size-in-smbios3.patch: Use DWORD for Structure table maximum size in SMBIOS3. - dmidecode-06-hide-irrelevant-fixup-message.patch: Hide irrelevant fixup message. http://savannah.nongnu.org/support/?109024 OBS-URL: https://build.opensuse.org/package/show/Base:System/dmidecode?expand=0&rev=35
30 lines
995 B
Diff
30 lines
995 B
Diff
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)
|
|
{
|