Explorar el Código

Revert "convert to zalloc"

This reverts commit 68add6e814.
tags/v0.9.3
Michael Brown hace 17 años
padre
commit
436adb2890
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      src/drivers/net/3c509.c

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

@@ -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 */

Loading…
Cancelar
Guardar