firmware: dmi: Use the proper accessor for the version field
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 30 Jul 2022 16:28:46 +0000 (18:28 +0200)
committerJean Delvare <jdelvare@suse.de>
Sat, 30 Jul 2022 16:28:46 +0000 (18:28 +0200)
commitd2139dfca361a1f5bfc4d4a23455b1a409a69cd4
treee56dd8df626980cc7323d3fb25abeec6a5bd3ae1
parent4b0986a3613c92f4ec1bdc7f60ec66fea135991f
firmware: dmi: Use the proper accessor for the version field

The byte at offset 6 represents length. Don't take it and drop it
immediately by using proper accessor, i.e. get_unaligned_be24().

[JD: Change the subject to something less frightening]

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
drivers/firmware/dmi_scan.c