From: Holger Lubitz Date: Fri, 6 Jul 2007 23:55:45 +0000 (+0200) Subject: Revert "convert to zalloc" X-Git-Tag: v0.9.3~255^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50fe2159d5533a11e51341c64de61aabff934eb4;p=thirdparty%2Fipxe.git Revert "convert to zalloc" This reverts commit 7297f04481f6737b0a40161da6d8413ca0f478d2. --- diff --git a/src/drivers/bus/mca.c b/src/drivers/bus/mca.c index 3f4421111..375a68344 100644 --- a/src/drivers/bus/mca.c +++ b/src/drivers/bus/mca.c @@ -90,11 +90,12 @@ static int mcabus_probe ( struct root_device *rootdev ) { for ( slot = 0 ; slot <= MCA_MAX_SLOT_NR ; slot++ ) { /* Allocate struct mca_device */ if ( ! mca ) - mca = zalloc ( sizeof ( *mca ) ); + mca = malloc ( sizeof ( *mca ) ); if ( ! mca ) { rc = -ENOMEM; goto err; } + memset ( mca, 0, sizeof ( *mca ) ); mca->slot = slot; /* Make sure motherboard setup is off */