diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-08-24 10:19:20 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-08-24 10:19:20 -0700 |
commit | e78bf8cbf005c3cc7dc4da55ce75152b71a1da0f (patch) | |
tree | 39ec44c334926b136340670c45ea9a6669b0812a /drivers/firmware | |
parent | c40e8341e3b3bb27e3a65b06b5b454626234c4f0 (diff) | |
parent | d2139dfca361a1f5bfc4d4a23455b1a409a69cd4 (diff) | |
download | lwn-e78bf8cbf005c3cc7dc4da55ce75152b71a1da0f.tar.gz lwn-e78bf8cbf005c3cc7dc4da55ce75152b71a1da0f.zip |
Merge branch 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging
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
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/dmi_scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c index f191a1f901ac..0eb6b617f709 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); |