ipv4: fix lockdep splat in rt_cache_seq_show
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 29 Nov 2011 20:05:55 +0000 (20:05 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:55:58 +0000 (08:55 -0800)
commitf667de2e66ea9b8f99353ff01221bb355faf3f3c
tree2206d37f97c9746bab86646cb6fe187e1775b41c
parentdb9a8a29b0c7c61b372300978fbe8b01606103f0
ipv4: fix lockdep splat in rt_cache_seq_show

[ Upstream commit 218fa90f072e4aeff9003d57e390857f4f35513e ]

After commit f2c31e32b378 (fix NULL dereferences in check_peer_redir()),
dst_get_neighbour() should be guarded by rcu_read_lock() /
rcu_read_unlock() section.

Reported-by: Miles Lane <miles.lane@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/route.c