From owner-svn-src-projects@FreeBSD.ORG Sat Aug 7 06:39:04 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C64291065680; Sat, 7 Aug 2010 06:39:04 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B67098FC17; Sat, 7 Aug 2010 06:39:04 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o776d4TK059531; Sat, 7 Aug 2010 06:39:04 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o776d4ad059529; Sat, 7 Aug 2010 06:39:04 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201008070639.o776d4ad059529@svn.freebsd.org> From: Jeff Roberson Date: Sat, 7 Aug 2010 06:39:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210995 - projects/ofed/head/sys/ofed/include/linux X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2010 06:39:04 -0000 Author: jeff Date: Sat Aug 7 06:39:04 2010 New Revision: 210995 URL: http://svn.freebsd.org/changeset/base/210995 Log: - Only allow probe to attach when the driver matches the correct linux driver. This keeps the device descriptions and unit numbers distinct. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/sys/ofed/include/linux/pci.h Modified: projects/ofed/head/sys/ofed/include/linux/pci.h ============================================================================== --- projects/ofed/head/sys/ofed/include/linux/pci.h Sat Aug 7 05:46:04 2010 (r210994) +++ projects/ofed/head/sys/ofed/include/linux/pci.h Sat Aug 7 06:39:04 2010 (r210995) @@ -358,6 +358,8 @@ linux_pci_probe(device_t dev) if ((pdrv = linux_pci_find(dev, &id)) == NULL) return (ENXIO); + if (device_get_driver(dev) != &pdrv->driver) + return (ENXIO); device_set_desc(dev, pdrv->name); return (0); }