From owner-freebsd-bugs Thu Jul 20 08:20:03 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id IAA11263 for bugs-outgoing; Thu, 20 Jul 1995 08:20:03 -0700 Received: (from gnats@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id IAA11256 ; Thu, 20 Jul 1995 08:20:02 -0700 Date: Thu, 20 Jul 1995 08:20:02 -0700 Message-Id: <199507201520.IAA11256@freefall.cdrom.com> From: vak@cronyx.ru Reply-To: vak@cronyx.ru To: freebsd-bugs Subject: kern/627: vidcontrol causes crash when booted with sc0 disabled In-Reply-To: Your message of Thu, 20 Jul 1995 19:12:13 +0400 <199507201512.TAA00322@hanoi.net.kiae.su> Sender: bugs-owner@FreeBSD.org Precedence: bulk >Number: 627 >Category: kern >Synopsis: vidcontrol causes crash when booted with sc0 disabled >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 20 08:20:01 1995 >Originator: Serge V.Vakulenko >Organization: Cronyx Ltd. >Release: FreeBSD 2.0-BUILT-19950603 i386 >Environment: >Description: When the system is loaded with the sc0 driver configured, but disabled (in kernel config mode), then any vidcontrol call causes the system crash. >How-To-Repeat: 1. Boot the kernel with -h -c options. 2. Disable the sc0 driver (disable sc0). Quit the config mode (quit). 3. After the system is loaded, try, say, "vidcontrol -c blink". The system will crash. >Fix: Apply the following patch: --- syscons205.c Tue May 30 12:03:13 1995 +++ syscons.c Thu Jul 20 17:16:29 1995 @@ -303,7 +303,7 @@ { int unit = minor(dev); - if (unit > MAXCONS || unit < 0) + if (! init_done || unit > MAXCONS || unit < 0) return(NULL); if (unit == MAXCONS) return CONSOLE_TTY; >Audit-Trail: >Unformatted: