aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-25 10:39:08 -0400
committerDavid S. Miller <davem@davemloft.net>2015-09-25 16:00:36 -0400
commitb40cf18ef7961b6d67732e234780586590510ce1 (patch)
tree5ca84feda0d47832902152cd2f23fa87fd427ab3 /net/ipv4/tcp_ipv4.c
parent6ea29da1d04f56e167ec8cc5ed15e927997d9d67 (diff)
tcp: constify listener socket in tcp_v[46]_init_req()
Soon, listener socket spinlock will no longer be held, add const arguments to tcp_v[46]_init_req() to make clear these functions can not mess socket fields. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 7e2646542312..9d968ca7b669 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -1168,7 +1168,8 @@ static bool tcp_v4_inbound_md5_hash(struct sock *sk,
1168} 1168}
1169#endif 1169#endif
1170 1170
1171static void tcp_v4_init_req(struct request_sock *req, struct sock *sk_listener, 1171static void tcp_v4_init_req(struct request_sock *req,
1172 const struct sock *sk_listener,
1172 struct sk_buff *skb) 1173 struct sk_buff *skb)
1173{ 1174{
1174 struct inet_request_sock *ireq = inet_rsk(req); 1175 struct inet_request_sock *ireq = inet_rsk(req);