Message ID | 20230713180514.592812-4-victor@mojatatu.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e8d3d78c19be0264a5692bed477c303523aead31 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: sched: Fixes for classifiers | expand |
diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index ed358466d042..5abf31e432ca 100644 --- a/net/sched/cls_u32.c +++ b/net/sched/cls_u32.c @@ -928,6 +928,13 @@ static int u32_change(struct net *net, struct sk_buff *in_skb, if (err) { u32_unbind_filter(tp, new, tb); + if (tb[TCA_U32_LINK]) { + struct tc_u_hnode *ht_old; + + ht_old = rtnl_dereference(n->ht_down); + if (ht_old) + ht_old->refcnt++; + } __u32_destroy_key(new); return err; }