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

src/drivers/bus/isapnp.c

index a19beb8..7903208 100644 (file)
@@ -653,11 +653,12 @@ static int isapnpbus_probe ( struct root_device *rootdev ) {
 
                        /* Allocate struct isapnp_device */
                        if ( ! isapnp )
-                               isapnp = zalloc ( sizeof ( *isapnp ) );
+                               isapnp = malloc ( sizeof ( *isapnp ) );
                        if ( ! isapnp ) {
                                rc = -ENOMEM;
                                goto err;
                        }
+                       memset ( isapnp, 0, sizeof ( *isapnp ) );
                        isapnp->csn = csn;
                        isapnp->logdev = logdev;