ipv6: don't use tw net when accounting for recycled tw
authorPavel Emelyanov <xemul@openvz.org>
Thu, 26 Feb 2009 11:35:13 +0000 (03:35 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 2 May 2009 17:56:30 +0000 (10:56 -0700)
commitb0bc360ef22df5239c4de5d1bb45d795bbcb5db3
treeca5c31cec0da806bcd224c07afeb64d5a77ba5be
parent47a520e8e3f15e8d8ad4103b7a4ae615d8ca5512
ipv6: don't use tw net when accounting for recycled tw

[ Upstream commit 3f53a38131a4e7a053c0aa060aba0411242fb6b9 ]

We already have a valid net in that place, but this is not just a
cleanup - the tw pointer can be NULL there sometimes, thus causing
an oops in NET_NS=y case.

The same place in ipv4 code already works correctly using existing
net, rather than tw's one.

The bug exists since 2.6.27.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv6/inet6_hashtables.c