From owner-cvs-all@FreeBSD.ORG Thu Jan 22 08:07:05 2004 Return-Path: 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 7E87416A4CE; Thu, 22 Jan 2004 08:07:05 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0E6343D2F; Thu, 22 Jan 2004 08:07:03 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0MG730B052739; Thu, 22 Jan 2004 08:07:03 -0800 (PST) (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0MG73W3052738; Thu, 22 Jan 2004 08:07:03 -0800 (PST) (envelope-from jhb) Message-Id: <200401221607.i0MG73W3052738@repoman.freebsd.org> From: John Baldwin Date: Thu, 22 Jan 2004 08:07:03 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/lnc if_lnc_pci.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2004 16:07:05 -0000 jhb 2004/01/22 08:07:03 PST FreeBSD src repository Modified files: sys/dev/lnc if_lnc_pci.c Log: Fix the PCI attach routine to properly setup the IRQ and port resource rid's and to deallocate resources if a failure occurs during attach. This patch also fixes the driver to return failure if bus_alloc_resource() for the IRQ fails rather than panic'ing on the next line by passing a NULL resource to bus_setup_intr(). The other attachments already do all this. Submitted by: Jun Su Revision Changes Path 1.32 +20 -13 src/sys/dev/lnc/if_lnc_pci.c