From 1fd89ab65388aec6cb58ad50b2c543dd6c89087c Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Wed, 26 Jan 2011 23:47:20 +0100 Subject: Use vzalloc() instead of __vmalloc() Use vzalloc() if kernel version supports it. (Eric Dumazet, Patrick McHardy) --- kernel/ip_set_hash_ipportnet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'kernel/ip_set_hash_ipportnet.c') 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; -- cgit v1.2.3