Module Name: src
Committed By: phx
Date: Sat Jan 30 16:47:05 UTC 2010
Modified Files:
src/sys/arch/amiga/dev: ite.c
Log Message:
Do not crash when ite wasn't configured to be console.
To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/arch/amiga/dev/ite.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/amiga/dev/ite.c
diff -u src/sys/arch/amiga/dev/ite.c:1.89 src/sys/arch/amiga/dev/ite.c:1.90
--- src/sys/arch/amiga/dev/ite.c:1.89 Mon Oct 26 19:16:54 2009
+++ src/sys/arch/amiga/dev/ite.c Sat Jan 30 16:47:05 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: ite.c,v 1.89 2009/10/26 19:16:54 cegger Exp $ */
+/* $NetBSD: ite.c,v 1.90 2010/01/30 16:47:05 phx Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@@ -83,7 +83,7 @@
#include "opt_ddb.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.89 2009/10/26 19:16:54 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.90 2010/01/30 16:47:05 phx Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -434,6 +434,8 @@
ip->cursorx = 0;
ip->cursory = 0;
+ if (ip->grf->g_iteinit == NULL)
+ return; /* grf has no console */
SUBR_INIT(ip);
SUBR_CURSOR(ip, DRAW_CURSOR);
if (ip->tabs == NULL)