drivers/net: use vzalloc()
[firefly-linux-kernel-4.4.55.git] / drivers / net / sfc / filter.c
index 52cb6082b910cd3c2a6072662a750691b6bc2173..44500b54fd5f8b02a768011735b1bb52558ca383 100644 (file)
@@ -428,10 +428,9 @@ int efx_probe_filters(struct efx_nic *efx)
                                             GFP_KERNEL);
                if (!table->used_bitmap)
                        goto fail;
-               table->spec = vmalloc(table->size * sizeof(*table->spec));
+               table->spec = vzalloc(table->size * sizeof(*table->spec));
                if (!table->spec)
                        goto fail;
-               memset(table->spec, 0, table->size * sizeof(*table->spec));
        }
 
        return 0;