mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
trivial: dmi_scan typo
As we've lost our trivial maintainer for the moment I'll send this directly. Only touches a comment Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1538a093f7
commit
8638545c36
1 changed files with 3 additions and 3 deletions
|
@ -81,9 +81,9 @@ static void dmi_table(u8 *buf, int len, int num,
|
|||
const struct dmi_header *dm = (const struct dmi_header *)data;
|
||||
|
||||
/*
|
||||
* We want to know the total length (formated area and strings)
|
||||
* before decoding to make sure we won't run off the table in
|
||||
* dmi_decode or dmi_string
|
||||
* We want to know the total length (formatted area and
|
||||
* strings) before decoding to make sure we won't run off the
|
||||
* table in dmi_decode or dmi_string
|
||||
*/
|
||||
data += dm->length;
|
||||
while ((data - buf < len - 1) && (data[0] || data[1]))
|
||||
|
|
Loading…
Reference in a new issue