From: Holger Lubitz Date: Fri, 6 Jul 2007 23:55:23 +0000 (+0200) Subject: Revert "convert to zalloc" X-Git-Tag: v0.9.3~255^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a772dc4a2a309e13d2b59471a4d0d16ed59e6fe0;p=thirdparty%2Fipxe.git Revert "convert to zalloc" This reverts commit 5ce16b03a1cb036ad0ab818473fe8f9c158949ed. --- 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;