net: reinstate rtnl in call_netdevice_notifiers()
authorEric Dumazet <[email protected]>
Wed, 22 Aug 2012 21:50:59 +0000 (21:50 +0000)
committerDavid S. Miller <[email protected]>
Thu, 23 Aug 2012 16:24:42 +0000 (09:24 -0700)
commit748e2d9396a18c3fd3d07d47c1b41320acf1fbf4
tree49bde8c370615258baada1d43acda2b3fb3625c2
parent0fa7fa98dbcc2789409ed24e885485e645803d7f
net: reinstate rtnl in call_netdevice_notifiers()

Eric Biederman pointed out that not holding RTNL while calling
call_netdevice_notifiers() was racy.

This patch is a direct transcription his feedback
against commit 0115e8e30d6fc (net: remove delay at device dismantle)

Thanks Eric !

Signed-off-by: Eric Dumazet <[email protected]>
Cc: Tom Herbert <[email protected]>
Cc: Mahesh Bandewar <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Gao feng <[email protected]>
Acked-by: "Eric W. Biederman" <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/core/dev.c
net/core/fib_rules.c
net/ipv4/devinet.c
net/ipv4/fib_frontend.c
net/ipv6/addrconf.c