summaryrefslogtreecommitdiffstats
path: root/drivers/net/macsec.c
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2016-06-14 15:25:14 +0200
committerDavid S. Miller <davem@davemloft.net>2016-06-15 23:47:46 +0200
commitb196c22af5c3ff784c472c80f6fb4e5fad67b2ac (patch)
tree8cbba8301066d8f2c3dd3fd6ac269cbf6debffbd /drivers/net/macsec.c
parenthtb: call qdisc_root with rcu read lock held (diff)
downloadlinux-b196c22af5c3ff784c472c80f6fb4e5fad67b2ac.tar.xz
linux-b196c22af5c3ff784c472c80f6fb4e5fad67b2ac.zip
macsec: add rcu_barrier() on module exit
Without this, the various uses of call_rcu could cause a kernel panic. Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver") Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macsec.c')
-rw-r--r--drivers/net/macsec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c
index 47ee2c840b55..e80736f6acd7 100644
--- a/drivers/net/macsec.c
+++ b/drivers/net/macsec.c
@@ -3361,6 +3361,7 @@ static void __exit macsec_exit(void)
genl_unregister_family(&macsec_fam);
rtnl_link_unregister(&macsec_link_ops);
unregister_netdevice_notifier(&macsec_notifier);
+ rcu_barrier();
}
module_init(macsec_init);