From: Jean Delvare Date: Thu, 25 Jun 2015 07:06:56 +0000 (+0200) Subject: firmware: dmi_scan: Trim DMI table length before exporting it X-Git-Tag: omap-for-v4.2/fixes-rc1^2~114^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e0ad59e3d838a2887e7aa657baee5896030d009;p=pandora-kernel.git firmware: dmi_scan: Trim DMI table length before exporting it The SMBIOS v3 entry points specify a maximum length for the DMI table, not the exact length. Thus there may be garbage after the end-of-table marker, which we don't want to export to user-space. Adjust dmi_len when we find the end-of-table marker, so that only the actual table payload is exported. Signed-off-by: Jean Delvare Cc: Ivan Khoronzhuk --- Reading git-diff-tree failed