소스 검색

Revert "convert to zalloc"

This reverts commit 68add6e814.
tags/v0.9.3
Michael Brown 18 년 전
부모
커밋
436adb2890
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      src/drivers/net/3c509.c

+ 2
- 1
src/drivers/net/3c509.c 파일 보기

347
 	for ( tag = 1 ; tag <= t509_max_tag ; tag++ ) {
347
 	for ( tag = 1 ; tag <= t509_max_tag ; tag++ ) {
348
 		/* Allocate struct t509_device */
348
 		/* Allocate struct t509_device */
349
 		if ( ! t509 )
349
 		if ( ! t509 )
350
-			t509 = zalloc ( sizeof ( *t509 ) );
350
+			t509 = malloc ( sizeof ( *t509 ) );
351
 		if ( ! t509 ) {
351
 		if ( ! t509 ) {
352
 			rc = -ENOMEM;
352
 			rc = -ENOMEM;
353
 			goto err;
353
 			goto err;
354
 		}
354
 		}
355
+		memset ( t509, 0, sizeof ( *t509 ) );
355
 		t509->tag = tag;
356
 		t509->tag = tag;
356
 
357
 
357
 		/* Send the ID sequence */
358
 		/* Send the ID sequence */

Loading…
취소
저장