X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=net%2Fopenvswitch%2Fvport.c;h=19f6765566e727d8e02655f0dd6c2f0f971f64e3;hb=d2b05765c576b57406f5f5320d1e305ffe32207a;hp=f81c1d0ddff4d6e05da635f78e84bd28cc681f06;hpb=285848b0f4074f04ab606f1e5dca296482033d54;p=linux 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; */ int ovs_vport_init(void) { - dev_table = kzalloc(VPORT_HASH_BUCKETS * sizeof(struct hlist_head), + dev_table = kcalloc(VPORT_HASH_BUCKETS, sizeof(struct hlist_head), GFP_KERNEL); if (!dev_table) return -ENOMEM;