]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/dmidecode/add_support_for_structure_type_43_tpm_device.patch
core127: Ship updated wget
[ipfire-2.x.git] / src / patches / dmidecode / add_support_for_structure_type_43_tpm_device.patch
CommitLineData
71e5a29c
MF
1From 174387405e98cd94c627832ae23abcb9be7e5623 Mon Sep 17 00:00:00 2001
2From: Jean Delvare <jdelvare@suse.de>
3Date: Wed, 31 Jan 2018 18:52:47 +0100
4Subject: dmidecode: Fix firmware version of TPM device
5
6Both the operator (detected by clang, reported by Xorg) and the mask
7for the minor firmware version field of TPM devices were wrong.
8
9Signed-off-by: Jean Delvare <jdelvare@suse.de>
10Fixes: 48a8132058a0 ("dmidecode: Add support for structure type 43 (TPM Device)")
11---
12 dmidecode.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/dmidecode.c b/dmidecode.c
16index 87faaa9..a593170 100644
17--- a/dmidecode.c
18+++ b/dmidecode.c
19@@ -4511,7 +4511,7 @@ static void dmi_decode(const struct dmi_header *h, u16 ver)
20 case 0x02:
21 printf("\tFirmware Revision: %u.%u\n",
22 DWORD(data + 0x0A) >> 16,
23- DWORD(data + 0x0A) && 0xFF);
24+ DWORD(data + 0x0A) & 0xFFFF);
25 /*
26 * We skip the next 4 bytes, as their
27 * format is not standardized and their
28--
29cgit v1.0-41-gc330
30