Skip to content

Commit 2d132eb

Browse files
congwangdavem330
authored andcommitted
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>
1 parent 27ce4f0 commit 2d132eb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/sched/cls_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,7 @@ void tcf_exts_destroy(struct tcf_exts *exts)
909909
#ifdef CONFIG_NET_CLS_ACT
910910
LIST_HEAD(actions);
911911

912+
ASSERT_RTNL();
912913
tcf_exts_to_list(exts, &actions);
913914
tcf_action_destroy(&actions, TCA_ACT_UNBIND);
914915
kfree(exts->actions);

0 commit comments

Comments
 (0)