Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2009 09:37:43 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r199353 - in stable/7/sys: dev/ichwd modules/ichwd
Message-ID:  <200911170937.nAH9bhUW098771@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue Nov 17 09:37:43 2009
New Revision: 199353
URL: http://svn.freebsd.org/changeset/base/199353

Log:
  MFC r199015: ichwd: don't attach to isa pnp device(s) by accident

Modified:
  stable/7/sys/dev/ichwd/ichwd.c
  stable/7/sys/modules/ichwd/Makefile
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/ichwd/ichwd.c
==============================================================================
--- stable/7/sys/dev/ichwd/ichwd.c	Tue Nov 17 09:35:13 2009	(r199352)
+++ stable/7/sys/dev/ichwd/ichwd.c	Tue Nov 17 09:37:43 2009	(r199353)
@@ -68,6 +68,7 @@ __FBSDID("$FreeBSD$");
 #include <machine/resource.h>
 #include <sys/watchdog.h>
 
+#include <isa/isavar.h>
 #include <dev/pci/pcivar.h>
 
 #include <dev/ichwd/ichwd.h>
@@ -393,7 +394,9 @@ static int
 ichwd_probe(device_t dev)
 {
 
-	(void)dev;
+	/* Do not claim some ISA PnP device by accident. */
+	if (isa_get_logicalid(dev) != 0)
+		return (ENXIO);
 	return (0);
 }
 

Modified: stable/7/sys/modules/ichwd/Makefile
==============================================================================
--- stable/7/sys/modules/ichwd/Makefile	Tue Nov 17 09:35:13 2009	(r199352)
+++ stable/7/sys/modules/ichwd/Makefile	Tue Nov 17 09:37:43 2009	(r199353)
@@ -3,6 +3,6 @@
 .PATH: ${.CURDIR}/../../dev/ichwd
 
 KMOD=	ichwd
-SRCS=	ichwd.c device_if.h bus_if.h pci_if.h
+SRCS=	ichwd.c device_if.h bus_if.h pci_if.h isa_if.h
 
 .include <bsd.kmod.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911170937.nAH9bhUW098771>