From owner-cvs-src@FreeBSD.ORG Thu Sep 15 17:51:40 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2991E16A41F; Thu, 15 Sep 2005 17:51:40 +0000 (GMT) (envelope-from keramida@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC95943D45; Thu, 15 Sep 2005 17:51:39 +0000 (GMT) (envelope-from keramida@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j8FHpdju004788; Thu, 15 Sep 2005 17:51:39 GMT (envelope-from keramida@repoman.freebsd.org) Received: (from keramida@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8FHpdVb004787; Thu, 15 Sep 2005 17:51:39 GMT (envelope-from keramida) Message-Id: <200509151751.j8FHpdVb004787@repoman.freebsd.org> From: Giorgos Keramidas Date: Thu, 15 Sep 2005 17:51:39 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/pci if_dc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 17:51:40 -0000 keramida 2005-09-15 17:51:39 UTC FreeBSD src repository (doc committer) Modified files: sys/pci if_dc.c Log: When bus_alloc_resource_any() fails, dc_detach() is called and it attempts to deallocate busdma tags and resources that haven't been allocated yet, causing a panic every time a dc interface fails to attach. Fix by checking that we really have something to dealloc before calling bus_dma*() functions. Approved by: jhb MFC after: 1 week Revision Changes Path 1.167 +11 -5 src/sys/pci/if_dc.c