diff options
author | Eric Dumazet <edumazet@google.com> | 2015-09-25 16:39:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-25 22:00:36 +0200 |
commit | b1964b5fce389a5660139ca39c25ff294da07b4f (patch) | |
tree | 9e165bbd7f65719fa9f1330fe33edfa3f49b3e67 /include/net | |
parent | tcp: constify listener socket in tcp_v[46]_init_req() (diff) | |
download | linux-b1964b5fce389a5660139ca39c25ff294da07b4f.tar.xz linux-b1964b5fce389a5660139ca39c25ff294da07b4f.zip |
tcp: constify tcp_openreq_init_rwin()
Soon, listener socket wont be locked when tcp_openreq_init_rwin()
is called. We need to read socket fields once, as their value
could change under us.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/tcp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index c006255a0df1..d37ad0c3ea9c 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -1207,7 +1207,8 @@ static inline int tcp_full_space(const struct sock *sk) } extern void tcp_openreq_init_rwin(struct request_sock *req, - struct sock *sk, struct dst_entry *dst); + const struct sock *sk_listener, + const struct dst_entry *dst); void tcp_enter_memory_pressure(struct sock *sk); |