]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 16 Mar 2016 11:30:41 +0000 (04:30 -0700)
commitabdf8af04f0a6348d25c6882b1e377417928914f
tree153137b843339159e5bec3ac71acc57d8711cb81
parent898611cf6c8089b7839d2b126200f2041b53b9e9
firmware: dmi_scan: Fix UUID endianness for SMBIOS >= 2.6

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>
Orabug: 22694972
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/firmware/dmi_scan.c