diff options
| author | David Greenman <dg@FreeBSD.org> | 1995-05-04 06:57:11 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 1995-05-04 06:57:11 +0000 |
| commit | cbb15d7c970c215210296e2df93dc40053037df1 (patch) | |
| tree | 4af82697300f00b3895700e2d3d517fc7b4a9ee3 | |
| parent | 2e363cad349201ce0b76874267a4dd84bcb814c8 (diff) | |
Notes
| -rw-r--r-- | sys/dev/pci/pci.c | 3 | ||||
| -rw-r--r-- | sys/pci/pci.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index c3b7dca1c05e..e12474009fd6 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -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; diff --git a/sys/pci/pci.c b/sys/pci/pci.c index c3b7dca1c05e..e12474009fd6 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -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; |
