diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-06-20 17:47:51 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-06-20 17:47:51 +0000 |
commit | d77a417b71bbe03720a314a0002d53c25c091cf3 (patch) | |
tree | dc64d7583c43e2d5b217b8ba3f5a1cd6d22dbf48 /sys/kern/uipc_socket.c | |
parent | ae932b023a4b823f78d8a2ca7ab77b209496fef5 (diff) | |
download | FreeBSD-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.c | 3 |
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); |