Browse Source

Revert "convert to zalloc"

This reverts commit 636bd2cd0a.
tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
ac323c5e4d
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/drivers/bus/isapnp.c

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

@@ -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…
Cancel
Save