diff options
author | Eric Dumazet <edumazet@google.com> | 2015-09-29 10:42:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-29 19:53:09 -0400 |
commit | c28c6f045945f53e842467bf0e86c5fac051643d (patch) | |
tree | 2e56881da4ad67d27221265d58112fcedf33a71c /net/ipv4/tcp_minisocks.c | |
parent | 54105f98f544ec5305bf1fad292ca454ad55ef67 (diff) |
tcp: constify tcp_create_openreq_child() socket argument
This method does not touch the listener socket.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
-rw-r--r-- | net/ipv4/tcp_minisocks.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index 139668cc2347..897e34273ba3 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c | |||
@@ -441,7 +441,9 @@ EXPORT_SYMBOL_GPL(tcp_ca_openreq_child); | |||
441 | * Actually, we could lots of memory writes here. tp of listening | 441 | * Actually, we could lots of memory writes here. tp of listening |
442 | * socket contains all necessary default parameters. | 442 | * socket contains all necessary default parameters. |
443 | */ | 443 | */ |
444 | struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req, struct sk_buff *skb) | 444 | struct sock *tcp_create_openreq_child(const struct sock *sk, |
445 | struct request_sock *req, | ||
446 | struct sk_buff *skb) | ||
445 | { | 447 | { |
446 | struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC); | 448 | struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC); |
447 | 449 | ||