Re: [PATCH] firmware: dmi_scan: Trim DMI table length before exporting it

2015-04-28 Thread Jean Delvare
Hi Ivan, Ard, On Mon, 27 Apr 2015 18:17:15 +0300, Ivan.khoronzhuk wrote: > On 26.04.15 23:47, Jean Delvare wrote: > > 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

Re: [PATCH] firmware: dmi_scan: Trim DMI table length before exporting it

2015-04-27 Thread Ivan.khoronzhuk
Hi, Jean On 26.04.15 23:47, Jean Delvare wrote: 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,

[PATCH] firmware: dmi_scan: Trim DMI table length before exporting it

2015-04-26 Thread Jean Delvare
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.