diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2014-09-25 13:26:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-28 17:29:01 -0400 |
commit | 18d0264f630e200772bf236ac5747c47e908501e (patch) | |
tree | 1881985374a2411bf9262e1e5977c8f4efd39849 /net/sched/cls_bpf.c | |
parent | 5804283d7cb1da46485950d545dd7869137dcda5 (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_bpf.c')
-rw-r--r-- | net/sched/cls_bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/cls_bpf.c b/net/sched/cls_bpf.c index 4e3f5bfc0b26..4318d067b0a0 100644 --- a/net/sched/cls_bpf.c +++ b/net/sched/cls_bpf.c | |||
@@ -93,7 +93,7 @@ static int cls_bpf_init(struct tcf_proto *tp) | |||
93 | static void cls_bpf_delete_prog(struct tcf_proto *tp, struct cls_bpf_prog *prog) | 93 | static void cls_bpf_delete_prog(struct tcf_proto *tp, struct cls_bpf_prog *prog) |
94 | { | 94 | { |
95 | tcf_unbind_filter(tp, &prog->res); | 95 | tcf_unbind_filter(tp, &prog->res); |
96 | tcf_exts_destroy(tp, &prog->exts); | 96 | tcf_exts_destroy(&prog->exts); |
97 | 97 | ||
98 | bpf_prog_destroy(prog->filter); | 98 | bpf_prog_destroy(prog->filter); |
99 | 99 | ||
@@ -217,7 +217,7 @@ static int cls_bpf_modify_existing(struct net *net, struct tcf_proto *tp, | |||
217 | errout_free: | 217 | errout_free: |
218 | kfree(bpf_ops); | 218 | kfree(bpf_ops); |
219 | errout: | 219 | errout: |
220 | tcf_exts_destroy(tp, &exts); | 220 | tcf_exts_destroy(&exts); |
221 | return ret; | 221 | return ret; |
222 | } | 222 | } |
223 | 223 | ||