david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

convert to zalloc

This commit is contained in:
Holger Lubitz 2007-06-18 01:25:00 +02:00
parent 3414fd8df8
commit 636bd2cd0a
1 changed files with 1 additions and 2 deletions

View File

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