summaryrefslogtreecommitdiffstats
path: root/src/drivers/bus
diff options
context:
space:
mode:
authorHolger Lubitz2007-07-07 01:55:45 +0200
committerHolger Lubitz2007-07-07 01:55:45 +0200
commit50fe2159d5533a11e51341c64de61aabff934eb4 (patch)
tree5e767c00fa5e5d596738ba347c497806fbcbe52c /src/drivers/bus
parentRevert "convert to zalloc" (diff)
downloadipxe-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.c3
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 */