* [GIT PULL nf-next 0/2] IPVS Updates for v3.17
@ 2014-07-16 1:11 Simon Horman
2014-07-16 1:11 ` [PATCH 1/2] ipvs: remove null test before kfree Simon Horman
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Simon Horman @ 2014-07-16 1:11 UTC (permalink / raw)
To: Pablo Neira Ayuso
Cc: lvs-devel, netdev, netfilter-devel, Wensong Zhang,
Julian Anastasov, Simon Horman
Hi Pablo,
please consider these IPVS Updates for v3.17.
The following changes since commit 24de3d377539e384621c5b8f8f8d8d01852dddc8:
netfilter: use IS_ENABLED() macro (2014-06-30 11:38:03 +0200)
are available in the git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs-next.git tags/ipvs-for-v3.17
for you to fetch changes up to 16ea4c6b9dde2ff44b2bd8bb459daa283cf3a46e:
ipvs: Remove dead debug code (2014-07-16 10:07:11 +0900)
----------------------------------------------------------------
IPVS Updates for v3.17
Some clean-ups:
* Remove unnecessary NULL check before call to kfree
* Remove dead debug code
----------------------------------------------------------------
Fabian Frederick (1):
ipvs: remove null test before kfree
Yannick Brosseau (1):
ipvs: Remove dead debug code
net/netfilter/ipvs/ip_vs_ctl.c | 86 -----------------------------------------
net/netfilter/ipvs/ip_vs_sync.c | 3 +-
2 files changed, 1 insertion(+), 88 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ipvs: remove null test before kfree
2014-07-16 1:11 [GIT PULL nf-next 0/2] IPVS Updates for v3.17 Simon Horman
@ 2014-07-16 1:11 ` Simon Horman
2014-07-16 1:11 ` [PATCH 2/2] ipvs: Remove dead debug code Simon Horman
2014-07-16 15:38 ` [GIT PULL nf-next 0/2] IPVS Updates for v3.17 Pablo Neira Ayuso
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-07-16 1:11 UTC (permalink / raw)
To: Pablo Neira Ayuso
Cc: lvs-devel, netdev, netfilter-devel, Wensong Zhang,
Julian Anastasov, Fabian Frederick, Simon Horman
From: Fabian Frederick <fabf@skynet.be>
Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Simon Horman <horms@verge.net.au>
---
net/netfilter/ipvs/ip_vs_sync.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c
index db80126..eadffb2 100644
--- a/net/netfilter/ipvs/ip_vs_sync.c
+++ b/net/netfilter/ipvs/ip_vs_sync.c
@@ -886,8 +886,7 @@ static void ip_vs_proc_conn(struct net *net, struct ip_vs_conn_param *param,
cp = ip_vs_conn_new(param, daddr, dport, flags, dest, fwmark);
rcu_read_unlock();
if (!cp) {
- if (param->pe_data)
- kfree(param->pe_data);
+ kfree(param->pe_data);
IP_VS_DBG(2, "BACKUP, add new conn. failed\n");
return;
}
--
2.0.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ipvs: Remove dead debug code
2014-07-16 1:11 [GIT PULL nf-next 0/2] IPVS Updates for v3.17 Simon Horman
2014-07-16 1:11 ` [PATCH 1/2] ipvs: remove null test before kfree Simon Horman
@ 2014-07-16 1:11 ` Simon Horman
2014-07-16 15:38 ` [GIT PULL nf-next 0/2] IPVS Updates for v3.17 Pablo Neira Ayuso
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-07-16 1:11 UTC (permalink / raw)
To: Pablo Neira Ayuso
Cc: lvs-devel, netdev, netfilter-devel, Wensong Zhang,
Julian Anastasov, Yannick Brosseau, Simon Horman
From: Yannick Brosseau <scientist@fb.com>
This code section cannot compile as it refer to non existing variable
It also pre-date git history.
Signed-off-by: Yannick Brosseau <scientist@fb.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
---
net/netfilter/ipvs/ip_vs_ctl.c | 86 ------------------------------------------
1 file changed, 86 deletions(-)
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index c42e83d..335fdb8 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -1807,92 +1807,6 @@ static struct ctl_table vs_vars[] = {
.proc_handler = proc_dointvec,
},
#endif
-#if 0
- {
- .procname = "timeout_established",
- .data = &vs_timeout_table_dos.timeout[IP_VS_S_ESTABLISHED],
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_jiffies,
- },
- {
- .procname = "timeout_synsent",
- .data = &vs_timeout_table_dos.timeout[IP_VS_S_SYN_SENT],
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_jiffies,
- },
- {
- .procname = "timeout_synrecv",
- .data = &vs_timeout_table_dos.timeout[IP_VS_S_SYN_RECV],
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_jiffies,
- },
- {
- .procname = "timeout_finwait",
- .data = &vs_timeout_table_dos.timeout[IP_VS_S_FIN_WAIT],
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_jiffies,
- },
- {
- .procname = "timeout_timewait",
- .data = &vs_timeout_table_dos.timeout[IP_VS_S_TIME_WAIT],
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_jiffies,
- },
- {
- .procname = "timeout_close",
- .data = &vs_timeout_table_dos.timeout[IP_VS_S_CLOSE],
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_jiffies,
- },
- {
- .procname = "timeout_closewait",
- .data = &vs_timeout_table_dos.timeout[IP_VS_S_CLOSE_WAIT],
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_jiffies,
- },
- {
- .procname = "timeout_lastack",
- .data = &vs_timeout_table_dos.timeout[IP_VS_S_LAST_ACK],
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_jiffies,
- },
- {
- .procname = "timeout_listen",
- .data = &vs_timeout_table_dos.timeout[IP_VS_S_LISTEN],
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_jiffies,
- },
- {
- .procname = "timeout_synack",
- .data = &vs_timeout_table_dos.timeout[IP_VS_S_SYNACK],
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_jiffies,
- },
- {
- .procname = "timeout_udp",
- .data = &vs_timeout_table_dos.timeout[IP_VS_S_UDP],
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_jiffies,
- },
- {
- .procname = "timeout_icmp",
- .data = &vs_timeout_table_dos.timeout[IP_VS_S_ICMP],
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_jiffies,
- },
-#endif
{ }
};
--
2.0.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [GIT PULL nf-next 0/2] IPVS Updates for v3.17
2014-07-16 1:11 [GIT PULL nf-next 0/2] IPVS Updates for v3.17 Simon Horman
2014-07-16 1:11 ` [PATCH 1/2] ipvs: remove null test before kfree Simon Horman
2014-07-16 1:11 ` [PATCH 2/2] ipvs: Remove dead debug code Simon Horman
@ 2014-07-16 15:38 ` Pablo Neira Ayuso
2 siblings, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2014-07-16 15:38 UTC (permalink / raw)
To: Simon Horman
Cc: lvs-devel, netdev, netfilter-devel, Wensong Zhang,
Julian Anastasov
On Wed, Jul 16, 2014 at 10:11:28AM +0900, Simon Horman wrote:
> Hi Pablo,
>
> please consider these IPVS Updates for v3.17.
>
>
> The following changes since commit 24de3d377539e384621c5b8f8f8d8d01852dddc8:
>
> netfilter: use IS_ENABLED() macro (2014-06-30 11:38:03 +0200)
>
> are available in the git repository at:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs-next.git tags/ipvs-for-v3.17
Pulled, thanks Simon.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-16 15:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-16 1:11 [GIT PULL nf-next 0/2] IPVS Updates for v3.17 Simon Horman
2014-07-16 1:11 ` [PATCH 1/2] ipvs: remove null test before kfree Simon Horman
2014-07-16 1:11 ` [PATCH 2/2] ipvs: Remove dead debug code Simon Horman
2014-07-16 15:38 ` [GIT PULL nf-next 0/2] IPVS Updates for v3.17 Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).