summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Lubitz2007-07-07 01:55:23 +0200
committerHolger Lubitz2007-07-07 01:55:23 +0200
commita772dc4a2a309e13d2b59471a4d0d16ed59e6fe0 (patch)
tree4fc1b1de1465213645c849a718794d5358a99cc0 /src
parentconvert to zalloc (diff)
downloadipxe-a772dc4a2a309e13d2b59471a4d0d16ed59e6fe0.tar.gz
ipxe-a772dc4a2a309e13d2b59471a4d0d16ed59e6fe0.tar.xz
ipxe-a772dc4a2a309e13d2b59471a4d0d16ed59e6fe0.zip
Revert "convert to zalloc"
This reverts commit 5ce16b03a1cb036ad0ab818473fe8f9c158949ed.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/bus/pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/bus/pci.c b/src/drivers/bus/pci.c
index 1f0ad5211..967441acd 100644
--- a/src/drivers/bus/pci.c
+++ b/src/drivers/bus/pci.c
@@ -245,11 +245,12 @@ static int pcibus_probe ( struct root_device *rootdev ) {
/* Allocate struct pci_device */
if ( ! pci )
- pci = zalloc ( sizeof ( *pci ) );
+ pci = malloc ( sizeof ( *pci ) );
if ( ! pci ) {
rc = -ENOMEM;
goto err;
}
+ memset ( pci, 0, sizeof ( *pci ) );
pci->bus = bus;
pci->devfn = devfn;