Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/4d08402b299e
branches:  netbsd-6-0
changeset: 774919:4d08402b299e
user:      sborrill <sborrill%NetBSD.org@localhost>
date:      Fri Feb 21 12:27:28 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 012e2d62cb65 -r 4d08402b299e sys/arch/atari/dev/ite.c
--- a/sys/arch/atari/dev/ite.c  Fri Feb 14 23:27:57 2014 +0000
+++ b/sys/arch/atari/dev/ite.c  Fri Feb 21 12:27:28 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.14.1 2014/02/21 12:27:28 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.14.1 2014/02/21 12:27:28 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