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_netport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'kernel/ip_set_hash_netport.c') diff --git a/kernel/ip_set_hash_netport.c b/kernel/ip_set_hash_netport.c index 636f367..f79077a 100644 --- a/kernel/ip_set_hash_netport.c +++ b/kernel/ip_set_hash_netport.c @@ -542,8 +542,7 @@ hash_netport_create(struct ip_set *set, struct nlattr *head, int len, u32 flags) 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