Date: Thu, 20 Jul 1995 08:20:02 -0700 From: vak@cronyx.ru To: freebsd-bugs Subject: kern/627: vidcontrol causes crash when booted with sc0 disabled Message-ID: <199507201520.IAA11256@freefall.cdrom.com> In-Reply-To: Your message of Thu, 20 Jul 1995 19:12:13 %2B0400 <199507201512.TAA00322@hanoi.net.kiae.su>
index | next in thread | previous in thread | raw e-mail
>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:
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507201520.IAA11256>
