diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-02 07:05:08 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-02 07:05:08 +0000 |
commit | e0c7cfd702fbc56b2bff5f7ccb0623bd1bda24fe (patch) | |
tree | 3945f8c57651648487e02a89da04f5f2574e1824 /user/dmidecode/correctness1.patch | |
parent | 688fa541d5b4a3304e1f0394fa7eecbf499216c9 (diff) | |
download | packages-e0c7cfd702fbc56b2bff5f7ccb0623bd1bda24fe.tar.gz packages-e0c7cfd702fbc56b2bff5f7ccb0623bd1bda24fe.tar.bz2 packages-e0c7cfd702fbc56b2bff5f7ccb0623bd1bda24fe.tar.xz packages-e0c7cfd702fbc56b2bff5f7ccb0623bd1bda24fe.zip |
user/dmidecode: pull in from Alpine, add upstream-recommended patches
Diffstat (limited to 'user/dmidecode/correctness1.patch')
-rw-r--r-- | user/dmidecode/correctness1.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/user/dmidecode/correctness1.patch b/user/dmidecode/correctness1.patch new file mode 100644 index 000000000..07f4f7ed7 --- /dev/null +++ b/user/dmidecode/correctness1.patch @@ -0,0 +1,30 @@ +From 174387405e98cd94c627832ae23abcb9be7e5623 Mon Sep 17 00:00:00 2001 +From: Jean Delvare <jdelvare@suse.de> +Date: Wed, 31 Jan 2018 18:52:47 +0100 +Subject: dmidecode: Fix firmware version of TPM device + +Both the operator (detected by clang, reported by Xorg) and the mask +for the minor firmware version field of TPM devices were wrong. + +Signed-off-by: Jean Delvare <jdelvare@suse.de> +Fixes: 48a8132058a0 ("dmidecode: Add support for structure type 43 (TPM Device)") +--- + dmidecode.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dmidecode.c b/dmidecode.c +index 87faaa9..a593170 100644 +--- a/dmidecode.c ++++ b/dmidecode.c +@@ -4511,7 +4511,7 @@ static void dmi_decode(const struct dmi_header *h, u16 ver) + case 0x02: + printf("\tFirmware Revision: %u.%u\n", + DWORD(data + 0x0A) >> 16, +- DWORD(data + 0x0A) && 0xFF); ++ DWORD(data + 0x0A) & 0xFFFF); + /* + * We skip the next 4 bytes, as their + * format is not standardized and their +-- +cgit v1.0-41-gc330 + |