]> git.baikalelectronics.ru Git - kernel.git/commit
[NETNS][DCCPV6]: Don't pass NULL to ip6_dst_lookup.
authorPavel Emelyanov <xemul@openvz.org>
Mon, 14 Apr 2008 05:31:32 +0000 (22:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Apr 2008 05:31:32 +0000 (22:31 -0700)
commite01fb1ff4bd218b80121ce4f3639ad9284ca9017
tree3bbea21c14f6cd0f6feb28a66249bdeead9e3011
parent1b1695de333350803c890a76f5070105c413fce3
[NETNS][DCCPV6]: Don't pass NULL to ip6_dst_lookup.

This call uses the sock to get the net to lookup the routing
in. With CONFIG_NET_NS this code will OOPS, since the sk ptr
is NULL.

After looking inside the ip6_dst_lookup and drawing the analogy
with respective ipv6 code, it seems, that the dccp ctl socket
is a good candidate for the first argument.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ipv6.c