Ver código fonte

Revert "convert to zalloc"

This reverts commit 68add6e814.
tags/v0.9.3
Michael Brown 17 anos atrás
pai
commit
436adb2890
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      src/drivers/net/3c509.c

+ 2
- 1
src/drivers/net/3c509.c Ver arquivo

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

Carregando…
Cancelar
Salvar