Procházet zdrojové kódy

Revert "convert to zalloc"

This reverts commit 3414fd8df8.
tags/v0.9.3
Holger Lubitz před 18 roky
rodič
revize
e3c72a3438
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2
    1
      src/drivers/bus/isa.c

+ 2
- 1
src/drivers/bus/isa.c Zobrazit soubor

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
 

Načítá se…
Zrušit
Uložit