aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/inet_connection_sock.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-29 07:42:43 -0700
committerDavid S. Miller <davem@davemloft.net>2015-09-29 16:53:08 -0700
commita2432c4fa5e3c4c06df6efe0c406b6f575829a7b (patch)
tree5fa4bcaeb177c1b342ce178509b0210ef32c4a1c /net/ipv4/inet_connection_sock.c
parentdccp: use inet6_csk_route_req() helper (diff)
downloadlinux-dev-a2432c4fa5e3c4c06df6efe0c406b6f575829a7b.tar.xz
linux-dev-a2432c4fa5e3c4c06df6efe0c406b6f575829a7b.zip
inet: constify inet_csk_route_child_sock() socket argument
The socket points to the (shared) listener. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inet_connection_sock.c')
-rw-r--r--net/ipv4/inet_connection_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c
index ba2f90d90cb5..694a5e8f4f9f 100644
--- a/net/ipv4/inet_connection_sock.c
+++ b/net/ipv4/inet_connection_sock.c
@@ -439,7 +439,7 @@ no_route:
}
EXPORT_SYMBOL_GPL(inet_csk_route_req);
-struct dst_entry *inet_csk_route_child_sock(struct sock *sk,
+struct dst_entry *inet_csk_route_child_sock(const struct sock *sk,
struct sock *newsk,
const struct request_sock *req)
{