summaryrefslogtreecommitdiff
path: root/drivers/net/sfc/filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc/filter.c')
-rw-r--r--drivers/net/sfc/filter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/sfc/filter.c b/drivers/net/sfc/filter.c
index 52cb6082b910..44500b54fd5f 100644
--- a/drivers/net/sfc/filter.c
+++ b/drivers/net/sfc/filter.c
@@ -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;