From: Holger Lubitz Date: Fri, 6 Jul 2007 23:56:27 +0000 (+0200) Subject: Revert "convert to zalloc" X-Git-Tag: v0.9.3~255^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3c72a3438b838bf20cc57517b08687dfd6a02bc;p=thirdparty%2Fipxe.git Revert "convert to zalloc" This reverts commit 3414fd8df8c514947254fd065d407e8db115221f. --- diff --git a/src/drivers/bus/isa.c b/src/drivers/bus/isa.c index edcf05bbf..a4105fd00 100644 --- a/src/drivers/bus/isa.c +++ b/src/drivers/bus/isa.c @@ -105,11 +105,12 @@ static int isabus_probe ( struct root_device *rootdev ) { ioidx <= ISA_IOIDX_MAX ( driver ) ; ioidx++ ) { /* Allocate struct isa_device */ if ( ! isa ) - isa = zalloc ( sizeof ( *isa ) ); + isa = malloc ( sizeof ( *isa ) ); if ( ! isa ) { rc = -ENOMEM; goto err; } + memset ( isa, 0, sizeof ( *isa ) ); isa->driver = driver; isa->ioaddr = ISA_IOADDR ( driver, ioidx );