]> git.ipfire.org Git - people/ms/linux.git/commit
firmware: dmi_scan: Fix dmi scan to handle "End of Table" structure
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Wed, 18 Feb 2015 13:51:41 +0000 (15:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 13:11:08 +0000 (14:11 +0100)
commit632151d9f8d9179a975e81870baae4481de7e915
treec9f0960b1fba9c35779f7251979c85f5a3cd38c8
parent96b012a4a065da89401e7cffd7558269b18ca0be
firmware: dmi_scan: Fix dmi scan to handle "End of Table" structure

commit ce204e9a4bd82e9e6e7479bca8057e45aaac5c42 upstream.

The dmi-sysfs should create "End of Table" entry, that is type 127. But
after adding initial SMBIOS v3 support fc43026278b2 ("dmi: add support
for SMBIOS 3.0 64-bit entry point") the 127-0 entry is not handled any
more, as result it's not created in dmi sysfs for instance. This is
important because the size of whole DMI table must correspond to sum of
all DMI entry sizes.

So move the end-of-table check after it's handled by dmi_table.

Reviewed-by: Ard Biesheuvel <ard@linaro.org>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/dmi_scan.c