git: 15bfd7cf2789 - main - soreceive_dgram: use M_WAITOK when we don't hold any locks

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Sat, 23 Mar 2024 05:45:44 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=15bfd7cf27898b5d34e9fa08c10f9cc69da05977

commit 15bfd7cf27898b5d34e9fa08c10f9cc69da05977
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-03-23 05:44:16 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2024-03-23 05:44:16 +0000

    soreceive_dgram: use M_WAITOK when we don't hold any locks
---
 sys/kern/uipc_socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index b70864cbf2a4..196461f645ce 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -2869,7 +2869,7 @@ soreceive_dgram(struct socket *so, struct sockaddr **psa, struct uio *uio,
 		    ("m->m_type == %d", m->m_type));
 		if (psa != NULL)
 			*psa = sodupsockaddr(mtod(m, struct sockaddr *),
-			    M_NOWAIT);
+			    M_WAITOK);
 		m = m_free(m);
 	}
 	KASSERT(m, ("%s: no data or control after soname", __func__));