Blame 0013-dmidecode-Fix-firmware-version-of-TPM-device.patch
|
Anton Arapov |
c2a608 |
From 174387405e98cd94c627832ae23abcb9be7e5623 Mon Sep 17 00:00:00 2001
|
|
Anton Arapov |
c2a608 |
From: Jean Delvare <jdelvare@suse.de>
|
|
Anton Arapov |
c2a608 |
Date: Wed, 31 Jan 2018 18:52:47 +0100
|
|
Anton Arapov |
c2a608 |
Subject: [PATCH 13/21] dmidecode: Fix firmware version of TPM device
|
|
Anton Arapov |
c2a608 |
|
|
Anton Arapov |
c2a608 |
Both the operator (detected by clang, reported by Xorg) and the mask
|
|
Anton Arapov |
c2a608 |
for the minor firmware version field of TPM devices were wrong.
|
|
Anton Arapov |
c2a608 |
|
|
Anton Arapov |
c2a608 |
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
Anton Arapov |
c2a608 |
Fixes: 48a8132058a0 ("dmidecode: Add support for structure type 43 (TPM Device)")
|
|
Anton Arapov |
c2a608 |
---
|
|
Anton Arapov |
c2a608 |
dmidecode.c | 2 +-
|
|
Anton Arapov |
c2a608 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Anton Arapov |
c2a608 |
|
|
Anton Arapov |
c2a608 |
diff --git a/dmidecode.c b/dmidecode.c
|
|
Anton Arapov |
c2a608 |
index 87faaa9..a593170 100644
|
|
Anton Arapov |
c2a608 |
--- a/dmidecode.c
|
|
Anton Arapov |
c2a608 |
+++ b/dmidecode.c
|
|
Anton Arapov |
c2a608 |
@@ -4511,7 +4511,7 @@ static void dmi_decode(const struct dmi_header *h, u16 ver)
|
|
Anton Arapov |
c2a608 |
case 0x02:
|
|
Anton Arapov |
c2a608 |
printf("\tFirmware Revision: %u.%u\n",
|
|
Anton Arapov |
c2a608 |
DWORD(data + 0x0A) >> 16,
|
|
Anton Arapov |
c2a608 |
- DWORD(data + 0x0A) && 0xFF);
|
|
Anton Arapov |
c2a608 |
+ DWORD(data + 0x0A) & 0xFFFF);
|
|
Anton Arapov |
c2a608 |
/*
|
|
Anton Arapov |
c2a608 |
* We skip the next 4 bytes, as their
|
|
Anton Arapov |
c2a608 |
* format is not standardized and their
|
|
Anton Arapov |
c2a608 |
--
|
|
Anton Arapov |
c2a608 |
2.17.1
|
|
Anton Arapov |
c2a608 |
|