]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: dmi_scan: Fix UUID endianness for SMBIOS >= 2.6
authorAndrea Arcangeli <aarcange@redhat.com>
Fri, 8 Jan 2016 08:00:54 +0000 (09:00 +0100)
committerLuis Henriques <luis.henriques@canonical.com>
Mon, 25 Jan 2016 10:44:07 +0000 (10:44 +0000)
commit0f7b4f7914e450b1bcffdbd26bbf35ee304cbfea
tree4e1a1cf60efb86a25205d6a9aa7a2711276be172
parent5ced25fdc36477a9aa0c6477154076c2bb36038e
firmware: dmi_scan: Fix UUID endianness for SMBIOS >= 2.6

commit ff4319dc7cd58c92b389960e375038335d157a60 upstream.

The dmi_ver wasn't updated correctly before the dmi_decode method run
to save the uuid.

That resulted in "dmidecode -s system-uuid" and
/sys/class/dmi/id/product_uuid disagreeing. The latter was buggy and
this fixes it.

Reported-by: Federico Simoncelli <fsimonce@redhat.com>
Fixes: 9f9c9cbb6057 ("drivers/firmware/dmi_scan.c: fetch dmi version from SMBIOS if it exists")
Fixes: 79bae42d51a5 ("dmi_scan: refactor dmi_scan_machine(), {smbios,dmi}_present()")
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
[ luis: backported to 3.16: adjusted context ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/firmware/dmi_scan.c