summaryrefslogtreecommitdiffstats
path: root/kernel/ip_set_hash_ipportnet.c
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-26 23:47:20 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-26 23:47:20 +0100
commit1fd89ab65388aec6cb58ad50b2c543dd6c89087c (patch)
tree1430502d786584101b96648cac68c52158c8cb68 /kernel/ip_set_hash_ipportnet.c
parent4348ddda619ef356085fd7faff598edd07f6d618 (diff)
Use vzalloc() instead of __vmalloc()
Use vzalloc() if kernel version supports it. (Eric Dumazet, Patrick McHardy)
Diffstat (limited to 'kernel/ip_set_hash_ipportnet.c')
-rw-r--r--kernel/ip_set_hash_ipportnet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/ip_set_hash_ipportnet.c b/kernel/ip_set_hash_ipportnet.c
index 379dd00..740ed5c 100644
--- a/kernel/ip_set_hash_ipportnet.c
+++ b/kernel/ip_set_hash_ipportnet.c
@@ -590,8 +590,7 @@ hash_ipportnet_create(struct ip_set *set, struct nlattr *head,
hbits = htable_bits(hashsize);
h->table = ip_set_alloc(
sizeof(struct htable)
- + jhash_size(hbits) * sizeof(struct hbucket),
- GFP_KERNEL);
+ + jhash_size(hbits) * sizeof(struct hbucket));
if (!h->table) {
kfree(h);
return -ENOMEM;