Browse Source

Revert "convert to zalloc"

This reverts commit 3414fd8df8.
tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
e3c72a3438
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/drivers/bus/isa.c

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

@@ -105,11 +105,12 @@ static int isabus_probe ( struct root_device *rootdev ) {
105 105
 		      ioidx <= ISA_IOIDX_MAX ( driver ) ; ioidx++ ) {
106 106
 			/* Allocate struct isa_device */
107 107
 			if ( ! isa )
108
-				isa = zalloc ( sizeof ( *isa ) );
108
+				isa = malloc ( sizeof ( *isa ) );
109 109
 			if ( ! isa ) {
110 110
 				rc = -ENOMEM;
111 111
 				goto err;
112 112
 			}
113
+			memset ( isa, 0, sizeof ( *isa ) );
113 114
 			isa->driver = driver;
114 115
 			isa->ioaddr = ISA_IOADDR ( driver, ioidx );
115 116
 

Loading…
Cancel
Save