]>
Commit | Line | Data |
---|---|---|
71e5a29c MF |
1 | From 174387405e98cd94c627832ae23abcb9be7e5623 Mon Sep 17 00:00:00 2001 |
2 | From: Jean Delvare <jdelvare@suse.de> | |
3 | Date: Wed, 31 Jan 2018 18:52:47 +0100 | |
4 | Subject: dmidecode: Fix firmware version of TPM device | |
5 | ||
6 | Both the operator (detected by clang, reported by Xorg) and the mask | |
7 | for the minor firmware version field of TPM devices were wrong. | |
8 | ||
9 | Signed-off-by: Jean Delvare <jdelvare@suse.de> | |
10 | Fixes: 48a8132058a0 ("dmidecode: Add support for structure type 43 (TPM Device)") | |
11 | --- | |
12 | dmidecode.c | 2 +- | |
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
14 | ||
15 | diff --git a/dmidecode.c b/dmidecode.c | |
16 | index 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 | -- | |
29 | cgit v1.0-41-gc330 | |
30 |