summaryrefslogtreecommitdiffstats
path: root/kernel/include
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2010-10-29 22:35:14 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2010-10-29 22:35:14 +0200
commitdc1f7b114b84cd54bc03c75c521c57cb79a30cfc (patch)
tree13649589bfc4a95d7a83bc9dafa94886edf3bfa9 /kernel/include
parentf484d856492fb66a6b658f4b753a64d7c151b5fd (diff)
Fix gfp_flags at resizing
Resizing functions are called without holding any lock. So we can allocate using the flag GFP_KERNEL.
Diffstat (limited to 'kernel/include')
-rw-r--r--kernel/include/linux/netfilter/ip_set_chash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/include/linux/netfilter/ip_set_chash.h b/kernel/include/linux/netfilter/ip_set_chash.h
index 9a1e26c..f0ef580 100644
--- a/kernel/include/linux/netfilter/ip_set_chash.h
+++ b/kernel/include/linux/netfilter/ip_set_chash.h
@@ -338,7 +338,7 @@ retry:
/* In case we have plenty of memory :-) */
return -IPSET_ERR_HASH_FULL;
t = ip_set_alloc(jhash_size(htable_bits) * sizeof(struct slist),
- gfp_flags);
+ GFP_KERNEL);
if (!t)
return -ENOMEM;
@@ -809,7 +809,7 @@ retry:
/* In case we have plenty of memory :-) */
return -IPSET_ERR_HASH_FULL;
t = ip_set_alloc(jhash_size(htable_bits) * sizeof(struct slist),
- gfp_flags);
+ GFP_KERNEL);
if (!t)
return -ENOMEM;