aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
Diffstat (limited to 'net/openvswitch')
-rw-r--r--net/openvswitch/vport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c
index f81c1d0ddff4..19f6765566e7 100644
--- a/net/openvswitch/vport.c
+++ b/net/openvswitch/vport.c
@@ -47,7 +47,7 @@ static struct hlist_head *dev_table;
47 */ 47 */
48int ovs_vport_init(void) 48int ovs_vport_init(void)
49{ 49{
50 dev_table = kzalloc(VPORT_HASH_BUCKETS * sizeof(struct hlist_head), 50 dev_table = kcalloc(VPORT_HASH_BUCKETS, sizeof(struct hlist_head),
51 GFP_KERNEL); 51 GFP_KERNEL);
52 if (!dev_table) 52 if (!dev_table)
53 return -ENOMEM; 53 return -ENOMEM;