act_pedit: check binding before calling tcf_hash_release()
authorWANG Cong <[email protected]>
Fri, 31 Jul 2015 00:12:21 +0000 (17:12 -0700)
committerDavid S. Miller <[email protected]>
Fri, 31 Jul 2015 22:22:34 +0000 (15:22 -0700)
commit5175f7106cc55a1bcf97bf7d5ba0900017ebcef8
tree9f3ccc13ff8fb73a9a260d99ea2276f3f43bf09f
parent8a68173691f036613e3d4e6bf8dc129d4a7bf383
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: 1a29321ed045 ("net_sched: act: Dont increment refcnt on replace")
Cc: Jamal Hadi Salim <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/sched/act_pedit.c