hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/net/core/request_sock.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * NET Generic infrastructure for Network protocols.
34 *
45 * Authors: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
56 *
67 * From code originally in include/net/tcp.h
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * as published by the Free Software Foundation; either version
11
- * 2 of the License, or (at your option) any later version.
128 */
139
1410 #include <linux/module.h>
....@@ -100,7 +96,7 @@
10096
10197 fastopenq = &inet_csk(lsk)->icsk_accept_queue.fastopenq;
10298
103
- tcp_sk(sk)->fastopen_rsk = NULL;
99
+ RCU_INIT_POINTER(tcp_sk(sk)->fastopen_rsk, NULL);
104100 spin_lock_bh(&fastopenq->lock);
105101 fastopenq->qlen--;
106102 tcp_rsk(req)->tfo_listener = false;