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_bitmap_ipmac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'kernel/ip_set_bitmap_ipmac.c') diff --git a/kernel/ip_set_bitmap_ipmac.c b/kernel/ip_set_bitmap_ipmac.c index 68fec19..3fa3921 100644 --- a/kernel/ip_set_bitmap_ipmac.c +++ b/kernel/ip_set_bitmap_ipmac.c @@ -554,8 +554,7 @@ static bool init_map_ipmac(struct ip_set *set, struct bitmap_ipmac *map, u32 first_ip, u32 last_ip) { - map->members = ip_set_alloc((last_ip - first_ip + 1) * map->dsize, - GFP_KERNEL); + map->members = ip_set_alloc((last_ip - first_ip + 1) * map->dsize); if (!map->members) return false; map->first_ip = first_ip; -- cgit v1.2.3