summaryrefslogtreecommitdiffstats
path: root/sys/dev
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/dev
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/dev')
-rw-r--r--sys/dev/syscons/syscons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index c371dd5..b75bf45 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.176 1996/10/02 22:00:38 sos Exp $
+ * $Id: syscons.c,v 1.177 1996/10/03 00:42:27 jkh Exp $
*/
#include "sc.h"
@@ -1322,7 +1322,7 @@ sccnprobe(struct consdev *cp)
* Take control if we are the highest priority enabled display device.
*/
dvp = find_display();
- if (dvp != NULL && dvp->id_driver != &scdriver) {
+ if (dvp == NULL || dvp->id_driver != &scdriver) {
cp->cn_pri = CN_DEAD;
return;
}
OpenPOWER on IntegriCloud