]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/net/act_api.h
net_sched: acquire RTNL in tc_action_net_exit()
[mirror_ubuntu-bionic-kernel.git] / include / net / act_api.h
index b944e0eb93be367944673939a943b05c3473f2e9..5072446d5f06f0935dc4e506635c4bee317ac4c4 100644 (file)
@@ -122,7 +122,9 @@ void tcf_idrinfo_destroy(const struct tc_action_ops *ops,
 
 static inline void tc_action_net_exit(struct tc_action_net *tn)
 {
+       rtnl_lock();
        tcf_idrinfo_destroy(tn->ops, tn->idrinfo);
+       rtnl_unlock();
        kfree(tn->idrinfo);
 }