Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amiga/dev Do not crash when ite wasn't configured t...



details:   https://anonhg.NetBSD.org/src/rev/43fa78c04a75
branches:  trunk
changeset: 751259:43fa78c04a75
user:      phx <phx%NetBSD.org@localhost>
date:      Sat Jan 30 16:47:05 2010 +0000

description:
Do not crash when ite wasn't configured to be console.

diffstat:

 sys/arch/amiga/dev/ite.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r d7dc47eccaa0 -r 43fa78c04a75 sys/arch/amiga/dev/ite.c
--- a/sys/arch/amiga/dev/ite.c  Sat Jan 30 16:16:35 2010 +0000
+++ b/sys/arch/amiga/dev/ite.c  Sat Jan 30 16:47:05 2010 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index