mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 03:40:04 +00:00
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:
parent
d6318f08e8
commit
9615e61e6f
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ register_ip_vs_proto_netns(struct net *net, struct ip_vs_protocol *pp)
|
||||||
struct netns_ipvs *ipvs = net_ipvs(net);
|
struct netns_ipvs *ipvs = net_ipvs(net);
|
||||||
unsigned int hash = IP_VS_PROTO_HASH(pp->protocol);
|
unsigned int hash = IP_VS_PROTO_HASH(pp->protocol);
|
||||||
struct ip_vs_proto_data *pd =
|
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)
|
if (!pd)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Loading…
Reference in a new issue