Skip to content

Commit b196c22

Browse files
qsndavem330
authored andcommitted
macsec: add rcu_barrier() on module exit
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 <[email protected]> Acked-by: Hannes Frederic Sowa <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0ee1362 commit b196c22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/macsec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3361,6 +3361,7 @@ static void __exit macsec_exit(void)
33613361
genl_unregister_family(&macsec_fam);
33623362
rtnl_link_unregister(&macsec_link_ops);
33633363
unregister_netdevice_notifier(&macsec_notifier);
3364+
rcu_barrier();
33643365
}
33653366

33663367
module_init(macsec_init);

0 commit comments

Comments
 (0)