diff options
-rw-r--r-- | net/netfilter/ipvs/ip_vs_ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index 8ca1a474eed6..ca8ec8c4f311 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c | |||
@@ -843,7 +843,7 @@ ip_vs_new_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest, | |||
843 | return -EINVAL; | 843 | return -EINVAL; |
844 | } | 844 | } |
845 | 845 | ||
846 | dest = kzalloc(sizeof(struct ip_vs_dest), GFP_ATOMIC); | 846 | dest = kzalloc(sizeof(struct ip_vs_dest), GFP_KERNEL); |
847 | if (dest == NULL) { | 847 | if (dest == NULL) { |
848 | pr_err("%s(): no memory.\n", __func__); | 848 | pr_err("%s(): no memory.\n", __func__); |
849 | return -ENOMEM; | 849 | return -ENOMEM; |
@@ -1177,7 +1177,7 @@ ip_vs_add_service(struct ip_vs_service_user_kern *u, | |||
1177 | } | 1177 | } |
1178 | #endif | 1178 | #endif |
1179 | 1179 | ||
1180 | svc = kzalloc(sizeof(struct ip_vs_service), GFP_ATOMIC); | 1180 | svc = kzalloc(sizeof(struct ip_vs_service), GFP_KERNEL); |
1181 | if (svc == NULL) { | 1181 | if (svc == NULL) { |
1182 | IP_VS_DBG(1, "%s(): no memory\n", __func__); | 1182 | IP_VS_DBG(1, "%s(): no memory\n", __func__); |
1183 | ret = -ENOMEM; | 1183 | ret = -ENOMEM; |