net: reinstate rtnl in call_netdevice_notifiers()
authorEric Dumazet <edumazet@google.com>
Wed, 22 Aug 2012 21:50:59 +0000 (21:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
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 <edumazet@google.com>
Cc: Tom Herbert <therbert@google.com>
Cc: Mahesh Bandewar <maheshb@google.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Gao feng <gaofeng@cn.fujitsu.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
net/core/fib_rules.c
net/ipv4/devinet.c
net/ipv4/fib_frontend.c
net/ipv6/addrconf.c