aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_tcindex.c
diff options
context:
space:
mode:
authorWANG Cong <xiyou.wangcong@gmail.com>2014-09-25 13:26:37 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-28 17:29:01 -0400
commit18d0264f630e200772bf236ac5747c47e908501e (patch)
tree1881985374a2411bf9262e1e5977c8f4efd39849 /net/sched/cls_tcindex.c
parent5804283d7cb1da46485950d545dd7869137dcda5 (diff)
net_sched: remove the first parameter from tcf_exts_destroy()
Cc: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Jamal Hadi Salim <hadi@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_tcindex.c')
-rw-r--r--net/sched/cls_tcindex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c
index 5054fae33a48..e3c6fa3ea3d2 100644
--- a/net/sched/cls_tcindex.c
+++ b/net/sched/cls_tcindex.c
@@ -169,7 +169,7 @@ found:
169 rcu_assign_pointer(*walk, rtnl_dereference(f->next)); 169 rcu_assign_pointer(*walk, rtnl_dereference(f->next));
170 } 170 }
171 tcf_unbind_filter(tp, &r->res); 171 tcf_unbind_filter(tp, &r->res);
172 tcf_exts_destroy(tp, &r->exts); 172 tcf_exts_destroy(&r->exts);
173 if (f) 173 if (f)
174 kfree_rcu(f, rcu); 174 kfree_rcu(f, rcu);
175 return 0; 175 return 0;
@@ -401,7 +401,7 @@ errout_alloc:
401 kfree(cp->h); 401 kfree(cp->h);
402errout: 402errout:
403 kfree(cp); 403 kfree(cp);
404 tcf_exts_destroy(tp, &e); 404 tcf_exts_destroy(&e);
405 return err; 405 return err;
406} 406}
407 407