From: WANG Cong Date: Mon, 4 Apr 2016 17:32:48 +0000 (-0700) Subject: net_sched: fix a memory leak in tc action X-Git-Tag: v4.6-rc3~14^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18fcf49f87f4b280d3cd695fc77766004b223af5;p=platform%2Fkernel%2Flinux-exynos.git net_sched: fix a memory leak in tc action Fixes: ddf97ccdd7cb ("net_sched: add network namespace support for tc actions") Reported-by: Dmitry Vyukov Tested-by: Dmitry Vyukov Cc: Jamal Hadi Salim Signed-off-by: Cong Wang Signed-off-by: David S. Miller --- diff --git a/include/net/act_api.h b/include/net/act_api.h index 2a19fe1..03e322b 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,