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
 		      ioidx <= ISA_IOIDX_MAX ( driver ) ; ioidx++ ) {
105
 		      ioidx <= ISA_IOIDX_MAX ( driver ) ; ioidx++ ) {
106
 			/* Allocate struct isa_device */
106
 			/* Allocate struct isa_device */
107
 			if ( ! isa )
107
 			if ( ! isa )
108
-				isa = zalloc ( sizeof ( *isa ) );
108
+				isa = malloc ( sizeof ( *isa ) );
109
 			if ( ! isa ) {
109
 			if ( ! isa ) {
110
 				rc = -ENOMEM;
110
 				rc = -ENOMEM;
111
 				goto err;
111
 				goto err;
112
 			}
112
 			}
113
+			memset ( isa, 0, sizeof ( *isa ) );
113
 			isa->driver = driver;
114
 			isa->driver = driver;
114
 			isa->ioaddr = ISA_IOADDR ( driver, ioidx );
115
 			isa->ioaddr = ISA_IOADDR ( driver, ioidx );
115
 
116
 

Loading…
Cancel
Save