]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix two lockdep splats
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 10 May 2011 03:55:03 +0000 (20:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 May 2011 22:03:01 +0000 (15:03 -0700)
commit47039a522fd2368711ff3ab33deb6e290d5c16db
tree15d4eb3545a1edf20103bb1ef927d7e7ba7b6c2e
parent15d92b11c6656b2c6d46dd9b60c3bc550f200c52
net: fix two lockdep splats

Commit 7e77fcbae33b (net: dont hold rtnl mutex during netlink dump
callbacks) switched rtnl protection to RCU, but we forgot to adjust two
rcu_dereference() lockdep annotations :

inet_get_link_af_size() or inet_fill_link_af() might be called with
rcu_read_lock or rtnl held, so use rcu_dereference_rtnl()
instead of rtnl_dereference()

Reported-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c