summaryrefslogtreecommitdiff
path: root/include/linux/dmi.h
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2015-06-25 09:06:56 +0200
committerJean Delvare <jdelvare@suse.de>2015-06-25 09:06:56 +0200
commit6e0ad59e3d838a2887e7aa657baee5896030d009 (patch)
treef28be09d52fab1cbc528db8d485370b25cc17317 /include/linux/dmi.h
parenteb4c5ea50e60aa8faaf6aae762cb06ee1c8e0b8e (diff)
downloadlwn-6e0ad59e3d838a2887e7aa657baee5896030d009.tar.gz
lwn-6e0ad59e3d838a2887e7aa657baee5896030d009.zip
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 <jdelvare@suse.de> Cc: Ivan Khoronzhuk <ivan.khoronzhuk@globallogic.com>
Diffstat (limited to 'include/linux/dmi.h')
0 files changed, 0 insertions, 0 deletions