summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pcvt
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-10-09 15:24:21 +0000
committerbde <bde@FreeBSD.org>1996-10-09 15:24:21 +0000
commite8d192466fe3f005269f06023c54296407ae002f (patch)
treefd5ec2a8e0ebd68d7b5294d02e298aaf2da88f00 /sys/i386/isa/pcvt
parentb3eb03e7b20f86e4b1db6d6d331ca84589f0aaab (diff)
downloadFreeBSD-src-e8d192466fe3f005269f06023c54296407ae002f.zip
FreeBSD-src-e8d192466fe3f005269f06023c54296407ae002f.tar.gz
Don't claim the console when the driver is disabled. The getc/putc
part of the console driver usually works when the driver is disabled, but the normal read/write part doesn't (it caused a panic).
Diffstat (limited to 'sys/i386/isa/pcvt')
-rw-r--r--sys/i386/isa/pcvt/pcvt_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c
index 5ff22b7..3b216f0 100644
--- a/sys/i386/isa/pcvt/pcvt_drv.c
+++ b/sys/i386/isa/pcvt/pcvt_drv.c
@@ -1073,7 +1073,7 @@ pccnprobe(struct consdev *cp)
* Take control if we are the highest priority enabled display device.
*/
dvp = find_display();
- if (dvp != NULL && dvp->id_driver != &vtdriver) {
+ if (dvp == NULL || dvp->id_driver != &vtdriver) {
cp->cn_pri = CN_DEAD;
return;
}
OpenPOWER on IntegriCloud