summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-29 17:42:50 +0300
committerDavid S. Miller <davem@davemloft.net>2015-09-30 02:53:09 +0300
commitf964629e3338d9e5a78c9b354380d5a1e2fa4617 (patch)
treeb81d02c2c7658e48482bfd0158bd7c0aa24d2111 /net/ipv6
parent3f684b4b1f1c86e3a6ac63389d1032e239fddd79 (diff)
downloadlinux-f964629e3338d9e5a78c9b354380d5a1e2fa4617.tar.xz
tcp: constify tcp_v{4|6}_route_req() sock argument
These functions do not change the listener socket. Goal is to make sure tcp_conn_request() is not messing with listener in a racy way. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/tcp_ipv6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 2330c7be6323..97bc26e0cd0f 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -689,7 +689,8 @@ static void tcp_v6_init_req(struct request_sock *req,
}
}
-static struct dst_entry *tcp_v6_route_req(struct sock *sk, struct flowi *fl,
+static struct dst_entry *tcp_v6_route_req(const struct sock *sk,
+ struct flowi *fl,
const struct request_sock *req,
bool *strict)
{