From: Sabrina Dubroca Date: Tue, 14 Jun 2016 13:25:14 +0000 (+0200) Subject: macsec: add rcu_barrier() on module exit X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b196c22af5c3ff784c472c80f6fb4e5fad67b2ac;p=linux-beck.git 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 Acked-by: Hannes Frederic Sowa Signed-off-by: David S. Miller --- 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);