diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-04-20 04:45:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-20 04:45:37 -0400 |
commit | ab9304717f7624c41927f442e6b6d418b2d8b3e4 (patch) | |
tree | 1ade11020c85e201b54caad9e929fc795d99487e /net | |
parent | b249dcb82d327e419d3cb45773b146ebb5faf419 (diff) |
net: emphasize rtnl lock required in call_netdevice_notifiers
Since netdev_chain is guarded by rtnl_lock, ASSERT_RTNL should be
present here to make sure that all callers of call_netdevice_notifiers
does the locking properly.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 0d78e0454a6d..b31d5d69a467 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1435,6 +1435,7 @@ EXPORT_SYMBOL(unregister_netdevice_notifier); | |||
1435 | 1435 | ||
1436 | int call_netdevice_notifiers(unsigned long val, struct net_device *dev) | 1436 | int call_netdevice_notifiers(unsigned long val, struct net_device *dev) |
1437 | { | 1437 | { |
1438 | ASSERT_RTNL(); | ||
1438 | return raw_notifier_call_chain(&netdev_chain, val, dev); | 1439 | return raw_notifier_call_chain(&netdev_chain, val, dev); |
1439 | } | 1440 | } |
1440 | 1441 | ||