diff options
Diffstat (limited to 'drivers/net/ethernet/sfc/ef10.c')
| -rw-r--r-- | drivers/net/ethernet/sfc/ef10.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/ef10.c b/drivers/net/ethernet/sfc/ef10.c index d90a7b1f4088..23f0785c0573 100644 --- a/drivers/net/ethernet/sfc/ef10.c +++ b/drivers/net/ethernet/sfc/ef10.c | |||
| @@ -4984,7 +4984,8 @@ static int efx_ef10_filter_table_probe(struct efx_nic *efx) | |||
| 4984 | net_dev->hw_features &= ~NETIF_F_HW_VLAN_CTAG_FILTER; | 4984 | net_dev->hw_features &= ~NETIF_F_HW_VLAN_CTAG_FILTER; |
| 4985 | } | 4985 | } |
| 4986 | 4986 | ||
| 4987 | table->entry = vzalloc(HUNT_FILTER_TBL_ROWS * sizeof(*table->entry)); | 4987 | table->entry = vzalloc(array_size(HUNT_FILTER_TBL_ROWS, |
| 4988 | sizeof(*table->entry))); | ||
| 4988 | if (!table->entry) { | 4989 | if (!table->entry) { |
| 4989 | rc = -ENOMEM; | 4990 | rc = -ENOMEM; |
| 4990 | goto fail; | 4991 | goto fail; |
