summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/bus/eisa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/bus/eisa.c b/src/drivers/bus/eisa.c
index eed99ffed..d9d02d727 100644
--- a/src/drivers/bus/eisa.c
+++ b/src/drivers/bus/eisa.c
@@ -106,11 +106,12 @@ static int eisabus_probe ( struct root_device *rootdev ) {
for ( slot = EISA_MIN_SLOT ; slot <= EISA_MAX_SLOT ; slot++ ) {
/* Allocate struct eisa_device */
if ( ! eisa )
- eisa = zalloc ( sizeof ( *eisa ) );
+ eisa = malloc ( sizeof ( *eisa ) );
if ( ! eisa ) {
rc = -ENOMEM;
goto err;
}
+ memset ( eisa, 0, sizeof ( *eisa ) );
eisa->slot = slot;
eisa->ioaddr = EISA_SLOT_BASE ( eisa->slot );