From owner-cvs-src-old@FreeBSD.ORG Fri Feb 18 02:15:12 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DA7510657C4 for ; Fri, 18 Feb 2011 02:15:12 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 59F368FC1C for ; Fri, 18 Feb 2011 02:15:12 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p1I2FCBV086723 for ; Fri, 18 Feb 2011 02:15:12 GMT (envelope-from yongari@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p1I2FCeA086722 for cvs-src-old@freebsd.org; Fri, 18 Feb 2011 02:15:12 GMT (envelope-from yongari@repoman.freebsd.org) Message-Id: <201102180215.p1I2FCeA086722@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to yongari@repoman.freebsd.org using -f From: Pyun YongHyeon Date: Fri, 18 Feb 2011 02:14:53 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/dc if_dc.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2011 02:15:12 -0000 yongari 2011-02-18 02:14:53 UTC FreeBSD src repository Modified files: sys/dev/dc if_dc.c Log: SVN rev 218787 on 2011-02-18 02:14:53Z by yongari When driver have to use base softc due to lack of SROM on second port, copy SROM information from base softc as well and run SROM parser again. This change is necessary for some dual port controllers to make dc(4) correctly detect PHY media based on first port configuration table. While I'm here add a check for validity of the base softc before duplicating SROM contents from base softc. If driver failed to attach to the first port it can access invalid area. PR: kern/79262 Reviewed by: marius Revision Changes Path 1.207 +37 -2 src/sys/dev/dc/if_dc.c