diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2016-04-04 20:32:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-06 23:04:29 +0300 |
commit | 18fcf49f87f4b280d3cd695fc77766004b223af5 (patch) | |
tree | 4612626d760f5670817079a118d1491035c5ad71 /include/net/act_api.h | |
parent | 138d6153a139c318739f20e61309e5778427a73c (diff) | |
download | linux-18fcf49f87f4b280d3cd695fc77766004b223af5.tar.xz |
net_sched: fix a memory leak in tc action
Fixes: ddf97ccdd7cb ("net_sched: add network namespace support for tc actions")
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Tested-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/act_api.h')
-rw-r--r-- | include/net/act_api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/act_api.h b/include/net/act_api.h index 2a19fe111c78..03e322b30218 100644 --- a/include/net/act_api.h +++ b/include/net/act_api.h @@ -135,6 +135,7 @@ void tcf_hashinfo_destroy(const struct tc_action_ops *ops, static inline void tc_action_net_exit(struct tc_action_net *tn) { tcf_hashinfo_destroy(tn->ops, tn->hinfo); + kfree(tn->hinfo); } int tcf_generic_walker(struct tc_action_net *tn, struct sk_buff *skb, |