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)
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>

No differences found