diff options
| author | Holger Lubitz | 2007-07-07 01:56:15 +0200 |
|---|---|---|
| committer | Holger Lubitz | 2007-07-07 01:56:15 +0200 |
| commit | ac323c5e4dee9841b72df9012b181583429167b1 (patch) | |
| tree | 59b2d736ed30468f0acedba6eace1888067fdbf5 /src/drivers/bus | |
| parent | Revert "convert to zalloc" (diff) | |
| download | ipxe-ac323c5e4dee9841b72df9012b181583429167b1.tar.gz ipxe-ac323c5e4dee9841b72df9012b181583429167b1.tar.xz ipxe-ac323c5e4dee9841b72df9012b181583429167b1.zip | |
Revert "convert to zalloc"
This reverts commit 636bd2cd0abfd9ae774456cd1c00e3f8bb63e7d8.
Diffstat (limited to 'src/drivers/bus')
| -rw-r--r-- | src/drivers/bus/isapnp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/bus/isapnp.c b/src/drivers/bus/isapnp.c index a19beb80..7903208d 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; |
