]> git.baikalelectronics.ru Git - kernel.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)
committerJean Delvare <jdelvare@suse.de>
Fri, 8 Jan 2016 08:00:54 +0000 (09:00 +0100)
commit677975c0f66c7d25df62a836341dbf19953b3c07
tree39e366e6730e9ddd784ed601d22192bf403ede13
parent718c78fd225b427592ff1d42f10265b634eedb24
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: 3537c5d732f4 ("drivers/firmware/dmi_scan.c: fetch dmi version from SMBIOS if it exists")
Fixes: 7882b0fd708c ("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>
drivers/firmware/dmi_scan.c