Browse Source

Revert "convert to zalloc"

This reverts commit 7297f04481.
tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
50fe2159d5
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/drivers/bus/mca.c

+ 2
- 1
src/drivers/bus/mca.c View File

@@ -90,11 +90,12 @@ static int mcabus_probe ( struct root_device *rootdev ) {
90 90
 	for ( slot = 0 ; slot <= MCA_MAX_SLOT_NR ; slot++ ) {
91 91
 		/* Allocate struct mca_device */
92 92
 		if ( ! mca )
93
-			mca = zalloc ( sizeof ( *mca ) );
93
+			mca = malloc ( sizeof ( *mca ) );
94 94
 		if ( ! mca ) {
95 95
 			rc = -ENOMEM;
96 96
 			goto err;
97 97
 		}
98
+		memset ( mca, 0, sizeof ( *mca ) );
98 99
 		mca->slot = slot;
99 100
 
100 101
 		/* Make sure motherboard setup is off */

Loading…
Cancel
Save