mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
bzero the malloced pci_devconf structure. This should fix the problem with
several of freefall's recent crashes.
This commit is contained in:
parent
2e363cad34
commit
cbb15d7c97
2 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/**************************************************************************
|
||||
**
|
||||
** $Id: pci.c,v 1.20 1995/03/21 23:01:01 se Exp $
|
||||
** $Id: pci.c,v 1.21 1995/03/23 06:14:44 davidg Exp $
|
||||
**
|
||||
** General subroutines for the PCI bus.
|
||||
** pci_configure ()
|
||||
|
|
@ -544,6 +544,7 @@ pci_bus_config (void)
|
|||
|
||||
pdcp = (struct pci_devconf *)
|
||||
malloc (sizeof (struct pci_devconf),M_DEVBUF,M_WAITOK);
|
||||
bzero(pdcp, sizeof(struct pci_devconf));
|
||||
|
||||
pdcp -> pdc_pi.pi_bus = pcicb->pcicb_bus;
|
||||
pdcp -> pdc_pi.pi_device = device;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/**************************************************************************
|
||||
**
|
||||
** $Id: pci.c,v 1.20 1995/03/21 23:01:01 se Exp $
|
||||
** $Id: pci.c,v 1.21 1995/03/23 06:14:44 davidg Exp $
|
||||
**
|
||||
** General subroutines for the PCI bus.
|
||||
** pci_configure ()
|
||||
|
|
@ -544,6 +544,7 @@ pci_bus_config (void)
|
|||
|
||||
pdcp = (struct pci_devconf *)
|
||||
malloc (sizeof (struct pci_devconf),M_DEVBUF,M_WAITOK);
|
||||
bzero(pdcp, sizeof(struct pci_devconf));
|
||||
|
||||
pdcp -> pdc_pi.pi_bus = pcicb->pcicb_bus;
|
||||
pdcp -> pdc_pi.pi_device = device;
|
||||
|
|
|
|||
Loading…
Reference in a new issue