[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <82e4877d0802110935v11e4bdf8l783a9834ca0a950d@mail.gmail.com>
Date: Mon, 11 Feb 2008 12:35:39 -0500
From: "Parag Warudkar" <parag.warudkar@...il.com>
To: "Jean Delvare" <khali@...ux-fr.org>
Cc: LKML <linux-kernel@...r.kernel.org>, "Ingo Molnar" <mingo@...e.hu>,
"Thomas Gleixner" <tglx@...utronix.de>
Subject: Re: [PATCH] dmi: Prevent linked list corruption (resent)
On Feb 11, 2008 12:24 PM, Jean Delvare <khali@...ux-fr.org> wrote:
> [Once more without forgetting the last "quilt refresh", sorry.]
>
> 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.
>
> 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 <khali@...ux-fr.org>
> Cc: Parag Warudkar <parag.warudkar@...il.com>
> Cc: Ingo Molnar <mingo@...e.hu>
> Cc: Thomas Gleixner <tglx@...utronix.de>
I suppose the list would be corrupted only if there are deletions from
the list? (Which there aren't.)
Anyway not adding the empty strings is way better and I don't see now
how they could've been useful.
(I added them out of the doubt of breaking something.)
Acked-By: Parag Warudkar <parag.warudkar@...il.com>
Thanks
Parag
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists