[NETNS][IPV6] route6 - pass always a valid socket to ip6_dst_lookup
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 5 Mar 2008 18:48:35 +0000 (10:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Mar 2008 18:48:35 +0000 (10:48 -0800)
commitc20121ae87955cfc8b51f89072294fc6077f39ad
tree05f46eec2d1d3c472f1f980f8e38f8a00fb5140a
parent4591db4f37618f37a9f1f25d291c3c7a43a15a21
[NETNS][IPV6] route6 - pass always a valid socket to ip6_dst_lookup

The ip6_dst_lookup receive a socket as parameter. In some part of the code
it is called with a NULL socket parameter. We want to rely on the socket
to retrieve the network namespace, so we always pass a valid socket in all
cases.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c
net/ipv6/tcp_ipv6.c