mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 06:03:24 +00:00
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>
This commit is contained in:
parent
4ab84d450e
commit
76aab2c1ea
@ -205,10 +205,9 @@ struct tcf_common *tcf_hash_check(u32 index, struct tc_action *a, int bind,
|
||||
{
|
||||
struct tcf_common *p = NULL;
|
||||
if (index && (p = tcf_hash_lookup(index, hinfo)) != NULL) {
|
||||
if (bind) {
|
||||
if (bind)
|
||||
p->tcfc_bindcnt++;
|
||||
p->tcfc_refcnt++;
|
||||
}
|
||||
p->tcfc_refcnt++;
|
||||
a->priv = p;
|
||||
}
|
||||
return p;
|
||||
|
Loading…
Reference in New Issue
Block a user