[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)
commit68d185980f70413b353df99cdf5e667510036668
tree3bbea21c14f6cd0f6feb28a66249bdeead9e3011
parentfc5f8580d31d52890f17526ea739b124bd4e56f4
[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