From owner-cvs-all Tue Jan 14 11:31:29 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8DA837B401; Tue, 14 Jan 2003 11:31:28 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92C5543F18; Tue, 14 Jan 2003 11:31:28 -0800 (PST) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h0EJVSfh023603; Tue, 14 Jan 2003 11:31:28 -0800 (PST) (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h0EJVSNH023599; Tue, 14 Jan 2003 11:31:28 -0800 (PST) Message-Id: <200301141931.h0EJVSNH023599@repoman.freebsd.org> From: Nate Lawson Date: Tue, 14 Jan 2003 11:31:28 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pci if_dc.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG njl 2003/01/14 11:31:28 PST Modified files: sys/pci if_dc.c Log: Remove bogus locking from dc(4). Instead, move interrupt allocation and ether_ifattach() to end. This fixes a "could sleep" case and simplifies error exit cases as well. Also be sure to set errno and clean up resources in !mac error case. Tested by: Ryan Beasley Revision Changes Path 1.88 +34 -42 src/sys/pci/if_dc.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message