diff options
| author | Holger Lubitz | 2007-06-18 01:25:00 +0200 |
|---|---|---|
| committer | Holger Lubitz | 2007-07-06 20:42:05 +0200 |
| commit | 636bd2cd0abfd9ae774456cd1c00e3f8bb63e7d8 (patch) | |
| tree | 0f0d3a8bea492105c428da57be6ed95fdf187854 /src/drivers/bus | |
| parent | convert to zalloc (diff) | |
| download | ipxe-636bd2cd0abfd9ae774456cd1c00e3f8bb63e7d8.tar.gz ipxe-636bd2cd0abfd9ae774456cd1c00e3f8bb63e7d8.tar.xz ipxe-636bd2cd0abfd9ae774456cd1c00e3f8bb63e7d8.zip | |
convert to zalloc
Diffstat (limited to 'src/drivers/bus')
| -rw-r--r-- | src/drivers/bus/isapnp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/drivers/bus/isapnp.c b/src/drivers/bus/isapnp.c index 7903208d..a19beb80 100644 --- a/src/drivers/bus/isapnp.c +++ b/src/drivers/bus/isapnp.c @@ -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; |
