]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Feb 2009 11:35:13 +0000 (03:35 -0800)
commit5db53ffb462258f532e839088c24db731ccf3914
tree123310cd7b3677ace9ab77daebd86f30ca280cc4
parentcd2f7f192ea23949a69f188633b6bed751da3689
ipv6: don't use tw net when accounting for recycled tw

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>
net/ipv6/inet6_hashtables.c