summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-06-20 17:47:51 +0000
committerrwatson <rwatson@FreeBSD.org>2004-06-20 17:47:51 +0000
commitd77a417b71bbe03720a314a0002d53c25c091cf3 (patch)
treedc64d7583c43e2d5b217b8ba3f5a1cd6d22dbf48 /sys/kern/uipc_socket.c
parentae932b023a4b823f78d8a2ca7ab77b209496fef5 (diff)
downloadFreeBSD-src-d77a417b71bbe03720a314a0002d53c25c091cf3.zip
FreeBSD-src-d77a417b71bbe03720a314a0002d53c25c091cf3.tar.gz
Convert an if->panic in soclose() into a call to KASSERT().
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r--sys/kern/uipc_socket.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index 1dd503c..9d3aa51 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -424,8 +424,7 @@ drop:
}
discard:
SOCK_LOCK(so);
- if (so->so_state & SS_NOFDREF)
- panic("soclose: NOFDREF");
+ KASSERT((so->so_state & SS_NOFDREF) == 0, ("soclose: NOFDREF"));
so->so_state |= SS_NOFDREF;
sorele(so);
splx(s);
OpenPOWER on IntegriCloud