From: Michael Brown Date: Sat, 7 Jul 2007 02:59:37 +0000 (+0100) Subject: Revert "convert to zalloc" X-Git-Tag: v0.9.3~256 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=436adb28906acf3b0549f8b628c42228a26a84bd;p=thirdparty%2Fipxe.git Revert "convert to zalloc" This reverts commit 68add6e814091f55e46afbef0b63f3d61f9549ba. --- diff --git a/src/drivers/net/3c509.c b/src/drivers/net/3c509.c index eae90b350..12cf77402 100644 --- a/src/drivers/net/3c509.c +++ b/src/drivers/net/3c509.c @@ -347,11 +347,12 @@ static int t509bus_probe ( struct root_device *rootdev ) { for ( tag = 1 ; tag <= t509_max_tag ; tag++ ) { /* Allocate struct t509_device */ if ( ! t509 ) - t509 = zalloc ( sizeof ( *t509 ) ); + t509 = malloc ( sizeof ( *t509 ) ); if ( ! t509 ) { rc = -ENOMEM; goto err; } + memset ( t509, 0, sizeof ( *t509 ) ); t509->tag = tag; /* Send the ID sequence */