ipvs: use GFP_KERNEL allocation where possible
Use GFP_KERNEL instead of GFP_ATOMIC when registering an ipvs protocol. This is safe since it will always run from a process context. Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
Родитель
d6318f08e8
Коммит
9615e61e6f
|
@ -68,7 +68,7 @@ register_ip_vs_proto_netns(struct net *net, struct ip_vs_protocol *pp)
|
|||
struct netns_ipvs *ipvs = net_ipvs(net);
|
||||
unsigned int hash = IP_VS_PROTO_HASH(pp->protocol);
|
||||
struct ip_vs_proto_data *pd =
|
||||
kzalloc(sizeof(struct ip_vs_proto_data), GFP_ATOMIC);
|
||||
kzalloc(sizeof(struct ip_vs_proto_data), GFP_KERNEL);
|
||||
|
||||
if (!pd)
|
||||
return -ENOMEM;
|
||||
|
|
Загрузка…
Ссылка в новой задаче