macsec: take rtnl lock before for_each_netdev
authorSabrina Dubroca <sd@queasysnail.net>
Fri, 22 Apr 2016 09:28:02 +0000 (11:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Apr 2016 18:31:58 +0000 (14:31 -0400)
commitc10c63ea739bce3b8a6ab85c7bb472d900c9b070
treec1f411eb17d17a7790d7883f57d160b68521892c
parent72f2a05b8f367ee0d75584a6fbec7dbe7c144f27
macsec: take rtnl lock before for_each_netdev

Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver")
Reported-by: Johannes Berg <johannes@sipsolutions.net>
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>
drivers/net/macsec.c