diff options
| author | Holger Lubitz | 2007-07-07 01:55:23 +0200 |
|---|---|---|
| committer | Holger Lubitz | 2007-07-07 01:55:23 +0200 |
| commit | a772dc4a2a309e13d2b59471a4d0d16ed59e6fe0 (patch) | |
| tree | 4fc1b1de1465213645c849a718794d5358a99cc0 /src/drivers | |
| parent | convert to zalloc (diff) | |
| download | ipxe-a772dc4a2a309e13d2b59471a4d0d16ed59e6fe0.tar.gz ipxe-a772dc4a2a309e13d2b59471a4d0d16ed59e6fe0.tar.xz ipxe-a772dc4a2a309e13d2b59471a4d0d16ed59e6fe0.zip | |
Revert "convert to zalloc"
This reverts commit 5ce16b03a1cb036ad0ab818473fe8f9c158949ed.
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/bus/pci.c | 3 |
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; |
