Skip to content

Commit

Permalink
macsec: add rcu_barrier() on module exit
Browse files Browse the repository at this point in the history
Without this, the various uses of call_rcu could cause a kernel panic.

Fixes: c09440f ("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>
  • Loading branch information
Sabrina Dubroca authored and David S. Miller committed Jun 15, 2016
1 parent 0ee1362 commit b196c22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/macsec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b196c22

Please sign in to comment.