drivers/firmware/dmi_scan.c: check dmi version when get system uuid
authorZhenzhong Duan <zhenzhong.duan@oracle.com>
Thu, 20 Dec 2012 23:05:13 +0000 (15:05 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Feb 2013 04:33:53 +0000 (04:33 +0000)
commit9b5dc20f97e09e01e046f5ce8215ef2b000196ca
treea83034f26c0efaac1a88d3fe35d5c6a4efd6e8f6
parent8bdb5d1a2d352d58ac99be529bb8c006dfb9be83
drivers/firmware/dmi_scan.c: check dmi version when get system uuid

commit f1d8e614d74b09531b9a85e812485340f3df7b1c upstream.

As of version 2.6 of the SMBIOS specification, the first 3 fields of the
UUID are supposed to be little-endian encoded.

Also a minor fix to match variable meaning and mute checkpatch.pl

[akpm@linux-foundation.org: tweak code comment]
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Cc: Feng Jin <joe.jin@oracle.com>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/firmware/dmi_scan.c