pkt_sched: Fix actions referencing

When an action is added several times with the same exact index
it gets deleted on every even-numbered attempt.
This fixes that issue.

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Jamal Hadi Salim and committed by David S. Miller 76aab2c1 4ab84d45

+2 -3
+2 -3
net/sched/act_api.c
··· 205 205 { 206 206 struct tcf_common *p = NULL; 207 207 if (index && (p = tcf_hash_lookup(index, hinfo)) != NULL) { 208 - if (bind) { 208 + if (bind) 209 209 p->tcfc_bindcnt++; 210 - p->tcfc_refcnt++; 211 - } 210 + p->tcfc_refcnt++; 212 211 a->priv = p; 213 212 } 214 213 return p;