• Jean Delvare's avatar
    firmware: dmi_scan: Trim DMI table length before exporting it · 6e0ad59e
    Jean Delvare authored
    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: default avatarJean Delvare <jdelvare@suse.de>
    Cc: Ivan Khoronzhuk <ivan.khoronzhuk@globallogic.com>
    6e0ad59e
dmi_scan.c 23.2 KB