diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2024-07-19 15:41:59 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2024-07-19 15:41:59 +0000 |
commit | e1e9e46628bbcd33fdc5e0d454037c828f291f26 (patch) | |
tree | 03fd908f2052108fe78a19b1fde1f62d74fba95e /sys | |
parent | 9c7cd53af69e05d70dde7e292bff2d3e1cdc02ad (diff) |
Relax socket lock assertion in UDP input and send.
OK mvs@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index bb85eb6d2f8..0e4002a4c04 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.321 2024/07/12 19:50:35 bluhm Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.322 2024/07/19 15:41:58 bluhm Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -592,7 +592,7 @@ udp_input(struct mbuf **mp, int *offp, int proto, int af) } KASSERT(sotoinpcb(inp->inp_socket) == inp); - soassertlocked(inp->inp_socket); + soassertlocked_readonly(inp->inp_socket); #ifdef INET6 if (ip6 && inp->inp_ip6_minhlim && @@ -1207,7 +1207,7 @@ udp_send(struct socket *so, struct mbuf *m, struct mbuf *addr, { struct inpcb *inp = sotoinpcb(so); - soassertlocked(so); + soassertlocked_readonly(so); #ifdef PIPEX if (inp->inp_pipex) { |