diff options
author | Cong Wang <[email protected]> | 2017-11-01 10:23:49 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-11-03 10:30:38 +0900 |
commit | a159d3c4b8291998c018f0dbddd4678315264a1e (patch) | |
tree | bbc6afb3b37bb06103e40b963eca79685bc49768 /include/linux/fpga/fpga-bridge.h | |
parent | 74784da82ff74379d0583a3ffe42835888705ac7 (diff) |
net_sched: acquire RTNL in tc_action_net_exit()
I forgot to acquire RTNL in tc_action_net_exit()
which leads that action ops->cleanup() is not always
called with RTNL. This usually is not a big deal because
this function is called after all netns refcnt are gone,
but given RTNL protects more than just actions, add it
for safety and consistency.
Also add an assertion to catch other potential bugs.
Fixes: ddf97ccdd7cb ("net_sched: add network namespace support for tc actions")
Reported-by: Lucas Bates <[email protected]>
Tested-by: Lucas Bates <[email protected]>
Cc: Jamal Hadi Salim <[email protected]>
Cc: Jiri Pirko <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions