]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb0c02f7d599b75250c1d53096c299c807f5975ea
tree49bde8c370615258baada1d43acda2b3fb3625c2
parentb0f6ed0c8e80b7b6222c7120218a9973efbb5c75
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 2c4dc291fa149 (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