|
@@ -1530,7 +1530,7 @@ static int ipoib_neigh_hash_init(struct ipoib_dev_priv *priv)
|
|
|
return -ENOMEM;
|
|
|
set_bit(IPOIB_STOP_NEIGH_GC, &priv->flags);
|
|
|
size = roundup_pow_of_two(arp_tbl.gc_thresh3);
|
|
|
- buckets = kcalloc(size, sizeof(*buckets), GFP_KERNEL);
|
|
|
+ buckets = kvcalloc(size, sizeof(*buckets), GFP_KERNEL);
|
|
|
if (!buckets) {
|
|
|
kfree(htbl);
|
|
|
return -ENOMEM;
|
|
@@ -1558,7 +1558,7 @@ static void neigh_hash_free_rcu(struct rcu_head *head)
|
|
|
struct ipoib_neigh __rcu **buckets = htbl->buckets;
|
|
|
struct ipoib_neigh_table *ntbl = htbl->ntbl;
|
|
|
|
|
|
- kfree(buckets);
|
|
|
+ kvfree(buckets);
|
|
|
kfree(htbl);
|
|
|
complete(&ntbl->deleted);
|
|
|
}
|