Source-Changes-HG archive

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

[src/netbsd-6]: src/sys/arch/atari/dev Pull up the following revisions(s) (re...



details:   https://anonhg.NetBSD.org/src/rev/750f2d01f572
branches:  netbsd-6
changeset: 776580:750f2d01f572
user:      sborrill <sborrill%NetBSD.org@localhost>
date:      Fri Feb 21 12:00:23 2014 +0000

description:
Pull up the following revisions(s) (requested by tsutsui in ticket #1033):
        sys/arch/atari/dev/ite.c:       revision 1.72

Fix kernel crash when a user tries to switch to nonexistent terminal.
Fixes PR/48599.

diffstat:

 sys/arch/atari/dev/ite.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 81dfde5e7aeb -r 750f2d01f572 sys/arch/atari/dev/ite.c
--- a/sys/arch/atari/dev/ite.c  Fri Feb 21 10:42:12 2014 +0000
+++ b/sys/arch/atari/dev/ite.c  Fri Feb 21 12:00:23 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ite.c,v 1.71 2011/06/05 16:25:12 tsutsui Exp $ */
+/*     $NetBSD: ite.c,v 1.71.8.1 2014/02/21 12:00:23 sborrill Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.71 2011/06/05 16:25:12 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.71.8.1 2014/02/21 12:00:23 sborrill Exp $");
 
 #include "opt_ddb.h"
 
@@ -665,8 +665,8 @@
        struct ite_softc        *sc;
        extern const struct cdevsw view_cdevsw;
 
-       sc = getitesp(unit);
-       if ((sc->flags & (ITE_ATTACHED | ITE_INITED)) == 0)
+       sc = device_lookup_private(&ite_cd, unit);
+       if (sc == NULL || (sc->flags & (ITE_ATTACHED | ITE_INITED)) == 0)
                return;
 
        /*



Home | Main Index | Thread Index | Old Index