From: Holger Lubitz Date: Fri, 6 Jul 2007 23:56:15 +0000 (+0200) Subject: Revert "convert to zalloc" X-Git-Tag: v0.9.3~255^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac323c5e4dee9841b72df9012b181583429167b1;p=thirdparty%2Fipxe.git Revert "convert to zalloc" This reverts commit 636bd2cd0abfd9ae774456cd1c00e3f8bb63e7d8. --- diff --git a/src/drivers/bus/isapnp.c b/src/drivers/bus/isapnp.c index a19beb808..7903208d0 100644 --- a/src/drivers/bus/isapnp.c +++ b/src/drivers/bus/isapnp.c @@ -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;