diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-26 23:47:20 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-26 23:47:20 +0100 |
commit | 1fd89ab65388aec6cb58ad50b2c543dd6c89087c (patch) | |
tree | 1430502d786584101b96648cac68c52158c8cb68 /kernel/ip_set_hash_ipport.c | |
parent | 4348ddda619ef356085fd7faff598edd07f6d618 (diff) |
Use vzalloc() instead of __vmalloc()
Use vzalloc() if kernel version supports it. (Eric Dumazet, Patrick McHardy)
Diffstat (limited to 'kernel/ip_set_hash_ipport.c')
-rw-r--r-- | kernel/ip_set_hash_ipport.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/ip_set_hash_ipport.c b/kernel/ip_set_hash_ipport.c index 7f37192..c8bb754 100644 --- a/kernel/ip_set_hash_ipport.c +++ b/kernel/ip_set_hash_ipport.c @@ -506,8 +506,7 @@ hash_ipport_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; |