Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev Return early if we are called from indi...



details:   https://anonhg.NetBSD.org/src/rev/bdfe4f72af75
branches:  trunk
changeset: 763757:bdfe4f72af75
user:      jdc <jdc%NetBSD.org@localhost>
date:      Sun Apr 03 06:25:11 2011 +0000

description:
Return early if we are called from indirect attach (i.e., not the normal
case).

diffstat:

 sys/arch/sparc64/dev/tda.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 17756302cb8a -r bdfe4f72af75 sys/arch/sparc64/dev/tda.c
--- a/sys/arch/sparc64/dev/tda.c        Sun Apr 03 06:22:02 2011 +0000
+++ b/sys/arch/sparc64/dev/tda.c        Sun Apr 03 06:25:11 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tda.c,v 1.3 2010/03/11 04:19:56 mrg Exp $      */
+/*     $NetBSD: tda.c,v 1.4 2011/04/03 06:25:11 jdc Exp $      */
 /*     $OpenBSD: tda.c,v 1.4 2008/02/27 17:25:00 robert Exp $ */
 
 /*
@@ -88,6 +88,8 @@
         * No need for "compatible" matching, we know exactly what
         * firmware calls us.
         */
+       if (ia->ia_name == NULL)
+               return(0);
        return strcmp(ia->ia_name, "fan-control") == 0;
 }
 



Home | Main Index | Thread Index | Old Index