| Submitter | Sasha Levin |
|---|---|
| Date | April 14, 2012, 4:37 p.m. |
| Message ID | <1334421467-30313-2-git-send-email-levinsasha928@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/152510/ |
| State | Superseded |
| Headers | show |
Comments
On Sat, Apr 14, 2012 at 12:37:47PM -0400, Sasha Levin wrote: > Use GFP_KERNEL instead of GFP_ATOMIC when registering an ipvs protocol. > > This is safe since it will always run from a process context. For the benefit of patchwork, this patch is in ipvs-next. Thanks again for the good work. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
diff --git a/net/netfilter/ipvs/ip_vs_proto.c b/net/netfilter/ipvs/ip_vs_proto.c index a62360e..307dbbb 100644 --- a/net/netfilter/ipvs/ip_vs_proto.c +++ b/net/netfilter/ipvs/ip_vs_proto.c @@ -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 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;
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> --- net/netfilter/ipvs/ip_vs_proto.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)