Re: [RESEND][PATCH v2] register_console: prevent adding the same console twice

2013-08-02 Thread Greg Kroah-Hartman
On Fri, Aug 02, 2013 at 12:23:34PM +0200, Andreas Bießmann wrote: > This patch guards the console_drivers list to be corrupted. The > for_each_console() macro insist on a strictly forward list ended by NULL: > > con0->next->con1->next->NULL > > Without this patch it may happen easily to destroy

[RESEND][PATCH v2] register_console: prevent adding the same console twice

2013-08-02 Thread Andreas Bießmann
This patch guards the console_drivers list to be corrupted. The for_each_console() macro insist on a strictly forward list ended by NULL: con0->next->con1->next->NULL Without this patch it may happen easily to destroy this list for example by adding 'earlyprintk' twice, especially on embedded de