Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b196c22a authored by Sabrina Dubroca's avatar Sabrina Dubroca Committed by David S. Miller
Browse files

macsec: add rcu_barrier() on module exit



Without this, the various uses of call_rcu could cause a kernel panic.

Fixes: c09440f7 ("macsec: introduce IEEE 802.1AE driver")
Signed-off-by: default avatarSabrina Dubroca <sd@queasysnail.net>
Acked-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0ee13627
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);