diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-27 19:33:13 +0100 | 
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-27 19:33:13 +0100 | 
| commit | c2a552197106b45d0d801d5b8a6be47563a700df (patch) | |
| tree | 61d42c1887b843170874bfec3cacc45211ed916a /include/linux/tcp.h | |
| parent | 9905f32aefbe3d9cb2d24c3bd9c882397eaf3842 (diff) | |
| parent | d6d5df1db6e9d7f8f76d2911707f7d5877251b02 (diff) | |
Merge 5.4-rc5 into tty-next
We want the tty/serial fix in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tcp.h')
| -rw-r--r-- | include/linux/tcp.h | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/tcp.h b/include/linux/tcp.h index 99617e528ea2..668e25a76d69 100644 --- a/include/linux/tcp.h +++ b/include/linux/tcp.h @@ -393,7 +393,7 @@ struct tcp_sock {  	/* fastopen_rsk points to request_sock that resulted in this big  	 * socket. Used to retransmit SYNACKs etc.  	 */ -	struct request_sock *fastopen_rsk; +	struct request_sock __rcu *fastopen_rsk;  	u32	*saved_syn;  }; @@ -447,8 +447,8 @@ static inline struct tcp_timewait_sock *tcp_twsk(const struct sock *sk)  static inline bool tcp_passive_fastopen(const struct sock *sk)  { -	return (sk->sk_state == TCP_SYN_RECV && -		tcp_sk(sk)->fastopen_rsk != NULL); +	return sk->sk_state == TCP_SYN_RECV && +	       rcu_access_pointer(tcp_sk(sk)->fastopen_rsk) != NULL;  }  static inline void fastopen_queue_tune(struct sock *sk, int backlog)  | 
