linux-mips
[Top] [All Lists]

Re: kernel/printk.c problem

To: Scott A McConnell <samcconn@cotw.com>
Subject: Re: kernel/printk.c problem
From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Date: Wed, 18 Apr 2001 08:53:49 +0200 (MET DST)
Cc: linux-mips@oss.sgi.com
In-reply-to: <3ADCBFAE.92957163@cotw.com>
Sender: owner-linux-mips@oss.sgi.com
On Tue, 17 Apr 2001, Scott A McConnell wrote:
> struct console *console_drivers = NULL;                          <----
> Need the NULL.
> 
> Otherwise, bad things can happen on the following statement in printk
> 
> ~line 311
> 
>        if ((c->flags & CON_ENABLED) && c->write){

Current policy is not explicitly initializing variables to zero. If this causes
problems, there's a bug in the routine that clears the BSS on kernel entry.

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium


<Prev in Thread] Current Thread [Next in Thread>