Parcourir la source

Revert "convert to zalloc"

This reverts commit a4bea78974.
tags/v0.9.3
Holger Lubitz il y a 17 ans
Parent
révision
85e04b5837
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      src/drivers/bus/eisa.c

+ 2
- 1
src/drivers/bus/eisa.c Voir le fichier

@@ -106,11 +106,12 @@ static int eisabus_probe ( struct root_device *rootdev ) {
106 106
 	for ( slot = EISA_MIN_SLOT ; slot <= EISA_MAX_SLOT ; slot++ ) {
107 107
 		/* Allocate struct eisa_device */
108 108
 		if ( ! eisa )
109
-			eisa = zalloc ( sizeof ( *eisa ) );
109
+			eisa = malloc ( sizeof ( *eisa ) );
110 110
 		if ( ! eisa ) {
111 111
 			rc = -ENOMEM;
112 112
 			goto err;
113 113
 		}
114
+		memset ( eisa, 0, sizeof ( *eisa ) );
114 115
 		eisa->slot = slot;
115 116
 		eisa->ioaddr = EISA_SLOT_BASE ( eisa->slot );
116 117
 

Chargement…
Annuler
Enregistrer