From owner-cvs-all@FreeBSD.ORG Tue Nov 30 06:55:43 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 AB8E016A4CE; Tue, 30 Nov 2004 06:55:43 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85F6943D46; Tue, 30 Nov 2004 06:55:43 +0000 (GMT) (envelope-from njl@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 iAU6thQJ066951; Tue, 30 Nov 2004 06:55:43 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iAU6th5L066950; Tue, 30 Nov 2004 06:55:43 GMT (envelope-from njl) Message-Id: <200411300655.iAU6th5L066950@repoman.freebsd.org> From: Nate Lawson Date: Tue, 30 Nov 2004 06:55:43 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/acpica acpi_pci_link.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: Tue, 30 Nov 2004 06:55:43 -0000 njl 2004-11-30 06:55:43 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi_pci_link.c Log: Make sure the link array is big enough to hold both _CRS and _PRS resource lists. It used to be sized based only on _CRS, hence _PRS could perform an out-of-bounds access if it was larger (i.e., when there are dependent functions). Add asserts to detect this case. Note, this is only a temporary fix and I believe _PRS and _CRS should have separate arrays. Also, fix a typo where the wrong irq was being check for the APIC case. Submitted by: tegge Revision Changes Path 1.36 +30 -8 src/sys/dev/acpica/acpi_pci_link.c