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).
This commit is contained in:
parent
c4bc3d3ffa
commit
df31aac551
@ -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 @@ int pci_map_int (pcici_t tag, int(*func)(), void* arg, unsigned* maskptr)
|
||||
** 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);
|
||||
|
@ -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 @@ int pci_map_int (pcici_t tag, int(*func)(), void* arg, unsigned* maskptr)
|
||||
** 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);
|
||||
|
Loading…
Reference in New Issue
Block a user