diff options
| author | Holger Lubitz | 2007-07-07 01:55:45 +0200 |
|---|---|---|
| committer | Holger Lubitz | 2007-07-07 01:55:45 +0200 |
| commit | 50fe2159d5533a11e51341c64de61aabff934eb4 (patch) | |
| tree | 5e767c00fa5e5d596738ba347c497806fbcbe52c /src/drivers/bus | |
| parent | Revert "convert to zalloc" (diff) | |
| download | ipxe-50fe2159d5533a11e51341c64de61aabff934eb4.tar.gz ipxe-50fe2159d5533a11e51341c64de61aabff934eb4.tar.xz ipxe-50fe2159d5533a11e51341c64de61aabff934eb4.zip | |
Revert "convert to zalloc"
This reverts commit 7297f04481f6737b0a40161da6d8413ca0f478d2.
Diffstat (limited to 'src/drivers/bus')
| -rw-r--r-- | src/drivers/bus/mca.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |
