From df31aac551a343b4d00a0ec5cee4b849fe31a915 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Mon, 2 Oct 1995 13:43:11 +0000 Subject: Fixed bug where wrong thing was being checked for NULL before calling free(), resulting in a panic. This happend whenever an irq had already been allocated by another device (like something on the ISA bus). --- sys/dev/pci/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 5d9a6df7323b..50337e5c41e3 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pci.c,v 1.30 1995/09/14 13:09:40 se Exp $ +** $Id: pci.c,v 1.31 1995/09/14 23:24:29 se Exp $ ** ** General subroutines for the PCI bus. ** pci_configure () @@ -1369,7 +1369,7 @@ fail: ** If included in mask, remove it. */ - if (free) free (new, M_DEVBUF); + if (new) free(new, M_DEVBUF); if (!mdp) (void) pcibus->pb_imaskexc (irq, maskptr); splx (oldspl); return (0); -- cgit v1.3