public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Little console problem in 2.5.30
@ 2002-08-19  6:37 Pete Zaitcev
  2002-08-19 12:36 ` Geert Uytterhoeven
  0 siblings, 1 reply; 5+ messages in thread
From: Pete Zaitcev @ 2002-08-19  6:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: jsimmons

Hi, all:

I would appreciate if someone would explain me if the attached patch
does the right thing. The problem is that I do not use the framebuffer,
and use a serial console. Whenever a legacy /sbin/init tries to
open /dev/tty0, the system oopses dereferencing conswitchp in
visual_init().

-- Pete

diff -ur -X dontdiff linux-2.5.30-sp_pbk/drivers/char/console.c linux-2.5.30-sparc/drivers/char/console.c
--- linux-2.5.30-sp_pbk/drivers/char/console.c	Thu Aug  1 14:16:34 2002
+++ linux-2.5.30-sparc/drivers/char/console.c	Sun Aug 18 23:14:20 2002
@@ -652,7 +652,7 @@
 
 int vc_allocate(unsigned int currcons)	/* return 0 on success */
 {
-	if (currcons >= MAX_NR_CONSOLES)
+	if (currcons >= MAX_NR_CONSOLES || conswitchp == NULL)
 		return -ENXIO;
 	if (!vc_cons[currcons].d) {
 	    long p, q;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-08-24  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-19  6:37 Little console problem in 2.5.30 Pete Zaitcev
2002-08-19 12:36 ` Geert Uytterhoeven
2002-08-20  1:25   ` Petr Vandrovec
2002-08-24  4:57   ` Pete Zaitcev
2002-08-24  4:49     ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox