aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/netfilter/ipt_CLUSTERIP.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c
index 5d70c43302b..c6be74e5726 100644
--- a/net/ipv4/netfilter/ipt_CLUSTERIP.c
+++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c
@@ -599,7 +599,8 @@ static void *clusterip_seq_next(struct seq_file *s, void *v, loff_t *pos)
599 599
600static void clusterip_seq_stop(struct seq_file *s, void *v) 600static void clusterip_seq_stop(struct seq_file *s, void *v)
601{ 601{
602 kfree(v); 602 if (!IS_ERR(v))
603 kfree(v);
603} 604}
604 605
605static int clusterip_seq_show(struct seq_file *s, void *v) 606static int clusterip_seq_show(struct seq_file *s, void *v)