Revert "convert to zalloc"
authorHolger Lubitz <hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 23:55:23 +0000 (01:55 +0200)
committerHolger Lubitz <hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 23:55:23 +0000 (01:55 +0200)
This reverts commit 5ce16b03a1cb036ad0ab818473fe8f9c158949ed.

src/drivers/bus/pci.c

index 1f0ad52..967441a 100644 (file)
@@ -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;