瀏覽代碼

Revert "convert to zalloc"

This reverts commit 636bd2cd0a.
tags/v0.9.3
Holger Lubitz 17 年之前
父節點
當前提交
ac323c5e4d
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/drivers/bus/isapnp.c

+ 2
- 1
src/drivers/bus/isapnp.c 查看文件

@@ -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…
取消
儲存