From 5344938f422c49f21062984bf3362d802b6b9356 Mon Sep 17 00:00:00 2001 From: mvs Date: Thu, 2 May 2024 21:26:52 +0000 Subject: [PATCH] Quick fix previous one. socantrcvmore() should raise assertion if `so_rcv' has SB_MTXLOCK flag clean, not SB_OWNLOCK. ok bluhm --- sys/kern/uipc_socket2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c index af7f4326bc7..f454f21bfdb 100644 --- a/sys/kern/uipc_socket2.c +++ b/sys/kern/uipc_socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket2.c,v 1.151 2024/04/30 17:59:15 mvs Exp $ */ +/* $OpenBSD: uipc_socket2.c,v 1.152 2024/05/02 21:26:52 mvs Exp $ */ /* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */ /* @@ -334,7 +334,7 @@ socantsendmore(struct socket *so) void socantrcvmore(struct socket *so) { - if ((so->so_rcv.sb_flags & SB_OWNLOCK) == 0) + if ((so->so_rcv.sb_flags & SB_MTXLOCK) == 0) soassertlocked(so); mtx_enter(&so->so_rcv.sb_mtx); -- 2.20.1