Module Name:    src
Committed By:   jdc
Date:           Sun Apr  3 06:25:11 UTC 2011

Modified Files:
        src/sys/arch/sparc64/dev: tda.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/sparc64/dev/tda.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/sparc64/dev/tda.c
diff -u src/sys/arch/sparc64/dev/tda.c:1.3 src/sys/arch/sparc64/dev/tda.c:1.4
--- src/sys/arch/sparc64/dev/tda.c:1.3	Thu Mar 11 04:19:56 2010
+++ src/sys/arch/sparc64/dev/tda.c	Sun Apr  3 06:25:11 2011
@@ -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;
 }
 

Reply via email to