Download raw body.
solisten(): use atomic_load_int() instead of READ_ONCE()
For consistency with others.
Index: sys/kern/uipc_socket.c
===================================================================
RCS file: /cvs/src/sys/kern/uipc_socket.c,v
diff -u -p -r1.341 uipc_socket.c
--- sys/kern/uipc_socket.c 1 Aug 2024 17:19:01 -0000 1.341
+++ sys/kern/uipc_socket.c 6 Aug 2024 15:42:11 -0000
@@ -234,8 +234,8 @@ sobind(struct socket *so, struct mbuf *n
int
solisten(struct socket *so, int backlog)
{
- int somaxconn_local = READ_ONCE(somaxconn);
- int sominconn_local = READ_ONCE(sominconn);
+ int somaxconn_local = atomic_load_int(&somaxconn);
+ int sominconn_local = atomic_load_int(&sominconn);
int error;
switch (so->so_type) {
solisten(): use atomic_load_int() instead of READ_ONCE()