Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Pass the device, not the struct softc to config_...



details:   https://anonhg.NetBSD.org/src/rev/97bd43c41dcf
branches:  trunk
changeset: 339473:97bd43c41dcf
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jul 24 06:17:10 2015 +0000

description:
Pass the device, not the struct softc to config_found().
Avoids a crash at attach time, PR port-i386/50076.

diffstat:

 sys/dev/pci/oboe.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 14a467e37a87 -r 97bd43c41dcf sys/dev/pci/oboe.c
--- a/sys/dev/pci/oboe.c        Fri Jul 24 05:20:01 2015 +0000
+++ b/sys/dev/pci/oboe.c        Fri Jul 24 06:17:10 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: oboe.c,v 1.42 2014/03/29 19:28:25 christos Exp $       */
+/*     $NetBSD: oboe.c,v 1.43 2015/07/24 06:17:10 martin Exp $ */
 
 /*     XXXXFVDL THIS DRIVER IS BROKEN FOR NON-i386 -- vtophys() usage  */
 
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: oboe.c,v 1.42 2014/03/29 19:28:25 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: oboe.c,v 1.43 2015/07/24 06:17:10 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -238,7 +238,7 @@
 
        oboe_alloc_taskfile(sc);
 
-       sc->sc_child = config_found((void *)sc, &ia, ir_print);
+       sc->sc_child = config_found(self, &ia, ir_print);
 }
 
 static int



Home | Main Index | Thread Index | Old Index