Explorar el Código

Revert "convert to zalloc"

This reverts commit 636bd2cd0a.
tags/v0.9.3
Holger Lubitz hace 17 años
padre
commit
ac323c5e4d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      src/drivers/bus/isapnp.c

+ 2
- 1
src/drivers/bus/isapnp.c Ver fichero

@@ -653,11 +653,12 @@ static int isapnpbus_probe ( struct root_device *rootdev ) {
653 653
 
654 654
 			/* Allocate struct isapnp_device */
655 655
 			if ( ! isapnp )
656
-				isapnp = zalloc ( sizeof ( *isapnp ) );
656
+				isapnp = malloc ( sizeof ( *isapnp ) );
657 657
 			if ( ! isapnp ) {
658 658
 				rc = -ENOMEM;
659 659
 				goto err;
660 660
 			}
661
+			memset ( isapnp, 0, sizeof ( *isapnp ) );
661 662
 			isapnp->csn = csn;
662 663
 			isapnp->logdev = logdev;
663 664
 

Loading…
Cancelar
Guardar