From: Jiri Pirko Date: Thu, 26 Jul 2018 16:27:58 +0000 (+0200) Subject: net: sched: unmark chain as explicitly created on delete X-Git-Tag: v4.19-rc1~140^2~241 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c921d7db3d1248c9091af070a7fdce2e55baa86a;p=linux.git net: sched: unmark chain as explicitly created on delete Once user manually deletes the chain using "chain del", the chain cannot be marked as explicitly created anymore. Signed-off-by: Jiri Pirko Fixes: 32a4f5ecd738 ("net: sched: introduce chain object to uapi") Signed-off-by: David S. Miller --- diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index f3d78c23338e..75cce2819de9 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -1844,6 +1844,7 @@ replay: * to the chain previously taken during addition. */ tcf_chain_put_explicitly_created(chain); + chain->explicitly_created = false; break; case RTM_GETCHAIN: err = tc_chain_notify(chain, skb, n->nlmsg_seq,