Re: kernel/printk.c problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux