diff options
author | Jean Delvare <[email protected]> | 2008-02-23 15:23:55 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-02-23 17:12:15 -0800 |
commit | 43fe105a5c91b2f00ea7f900ed307fe980410612 (patch) | |
tree | 7f6b9a8a20cd76374e67d50917716f270e82cb19 /net/unix/sysctl_net_unix.c | |
parent | 79306a340c23e40c94ce16e504d172ae15b24187 (diff) |
dmi: prevent linked list corruption
Adding the same item to a given linked list more than once is guaranteed
to break and corrupt the list. This is however what we do in dmi_scan
since commit 79da4721117fcf188b4b007b775738a530f574da ("x86: fix DMI out
of memory problems").
Given that there is absolutely no interest in saving empty OEM strings
anyway, I propose the simple and efficient fix below: we discard the empty
OEM strings altogether.
Signed-off-by: Jean Delvare <[email protected]>
Acked-by: Parag Warudkar <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Matt Domsch <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions