summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_api.c
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2017-10-27 03:24:40 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-29 14:49:31 +0100
commit2d132eba1d972ea6c0e47286e4c821b4a3c5b84d (patch)
tree04c08401ad73a945a1ac5b6c1ab9d5768bd24141 /net/sched/cls_api.c
parentnet_sched: use tcf_queue_work() in tcindex filter (diff)
downloadlinux-2d132eba1d972ea6c0e47286e4c821b4a3c5b84d.tar.xz
linux-2d132eba1d972ea6c0e47286e4c821b4a3c5b84d.zip
net_sched: add rtnl assertion to tcf_exts_destroy()
After previous patches, it is now safe to claim that tcf_exts_destroy() is always called with RTNL lock. Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: Jiri Pirko <jiri@resnulli.us> Cc: John Fastabend <john.fastabend@gmail.com> Cc: Jamal Hadi Salim <jhs@mojatatu.com> Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_api.c')
-rw-r--r--net/sched/cls_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 045d13679ad6..231181c602ed 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -909,6 +909,7 @@ void tcf_exts_destroy(struct tcf_exts *exts)
#ifdef CONFIG_NET_CLS_ACT
LIST_HEAD(actions);
+ ASSERT_RTNL();
tcf_exts_to_list(exts, &actions);
tcf_action_destroy(&actions, TCA_ACT_UNBIND);
kfree(exts->actions);