projects/linux·commit e78bf8cb

Merge branch 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging

e78bf8cb · Linus Torvalds <[email protected]> · 2022-08-24 10:19:20 -07:00

Pull dmi update from Jean Delvare.

Tiny cleanup.

* 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
  firmware: dmi: Use the proper accessor for the version field
Commit
e78bf8cbf005c3cc7dc4da55ce75152b71a1da0f
Parents
c40e8341 · d2139dfc

Merge commit. Changes below are compared with the first parent: c40e8341.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/firmware/dmi_scan.cmodified+1−1View file

drivers/firmware/dmi_scan.c

View file
diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c
index f191a1f..0eb6b61 100644
--- a/drivers/firmware/dmi_scan.c
+++ b/drivers/firmware/dmi_scan.c
@@ -630,7 +630,7 @@ static int __init dmi_smbios3_present(const u8 *buf)
{
if (memcmp(buf, "_SM3_", 5) == 0 &&
buf[6] < 32 && dmi_checksum(buf, buf[6])) {
- dmi_ver = get_unaligned_be32(buf + 6) & 0xFFFFFF;
+ dmi_ver = get_unaligned_be24(buf + 7);
dmi_num = 0; /* No longer specified */
dmi_len = get_unaligned_le32(buf + 12);
dmi_base = get_unaligned_le64(buf + 16);