net: fix potential neighbour race in dst_ifdown()
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 8 Aug 2011 20:56:14 +0000 (20:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Aug 2011 04:47:14 +0000 (21:47 -0700)
commit9de79c127cccecb11ae6a21ab1499e87aa222880
tree98173bcb0f620d078edc85f577b778b1f840ec3e
parent19fd61785a580c60cba900c5171bfadb57dd5056
net: fix potential neighbour race in dst_ifdown()

Followup of commit f2c31e32b378a (fix NULL dereferences in
check_peer_redir()).

We need to make sure dst neighbour doesnt change in dst_ifdown().

Fix some sparse errors.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dst.c