]> git.baikalelectronics.ru Git - kernel.git/commit
act_pedit: check binding before calling tcf_hash_release()
authorWANG Cong <xiyou.wangcong@gmail.com>
Fri, 31 Jul 2015 00:12:21 +0000 (17:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2015 22:22:34 +0000 (15:22 -0700)
commit33072fbec1a174cf1ccdc063630c81a3822d5bf4
tree9f3ccc13ff8fb73a9a260d99ea2276f3f43bf09f
parentf1ab38c355cf57458c92d27109ff7c3c2ccd4b23
act_pedit: check binding before calling tcf_hash_release()

When we share an action within a filter, the bind refcnt
should increase, therefore we should not call tcf_hash_release().

Fixes: 7b17555bdbea ("net_sched: act: Dont increment refcnt on replace")
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_pedit.c