]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/sched/act_api.c
net_sched: acquire RTNL in tc_action_net_exit()
[mirror_ubuntu-bionic-kernel.git] / net / sched / act_api.c
index da6fa82c98a8b7fb0d4e94cdfcaa0198e6972d90..8f2c635149561e741bda88163df063f8cc70f957 100644 (file)
@@ -86,6 +86,8 @@ int __tcf_idr_release(struct tc_action *p, bool bind, bool strict)
 {
        int ret = 0;
 
+       ASSERT_RTNL();
+
        if (p) {
                if (bind)
                        p->tcfa_bindcnt--;