RDMA/addr: Use appropriate locking with for_each_netdev()
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 18 Nov 2009 22:24:34 +0000 (14:24 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 18 Nov 2009 22:24:34 +0000 (14:24 -0800)
commit0f9ea5d2ab5cef732d5abbe62b9e9af3007bae81
treef5d3f3583c991b6f162cd91f9bffdc0937b12720
parenta7ca1f00ed2921b804d7ebda0f6fca8c9078fa42
RDMA/addr: Use appropriate locking with for_each_netdev()

for_each_netdev() should be used with RTNL or dev_base_lock held,
or else we risk a crash.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/addr.c