hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/net/sctp/proc.c
....@@ -1,23 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* SCTP kernel implementation
23 * Copyright (c) 2003 International Business Machines, Corp.
34 *
45 * This file is part of the SCTP kernel implementation
5
- *
6
- * This SCTP implementation is free software;
7
- * you can redistribute it and/or modify it under the terms of
8
- * the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2, or (at your option)
10
- * any later version.
11
- *
12
- * This SCTP implementation is distributed in the hope that it
13
- * will be useful, but WITHOUT ANY WARRANTY; without even the implied
14
- * ************************
15
- * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
- * See the GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with GNU CC; see the file COPYING. If not, see
20
- * <http://www.gnu.org/licenses/>.
216 *
227 * Please send any bug reports or fixes you make to the
238 * email address(es):
....@@ -299,7 +284,7 @@
299284 assoc->init_retries, assoc->shutdown_retries,
300285 assoc->rtx_data_chunks,
301286 refcount_read(&sk->sk_wmem_alloc),
302
- sk->sk_wmem_queued,
287
+ READ_ONCE(sk->sk_wmem_queued),
303288 sk->sk_sndbuf,
304289 sk->sk_rcvbuf);
305290 seq_printf(seq, "\n");