summaryrefslogtreecommitdiff
path: root/sys/net/raw_cb.c
diff options
context:
space:
mode:
authorSeigo Tanimura <tanimura@FreeBSD.org>2002-05-31 11:52:35 +0000
committerSeigo Tanimura <tanimura@FreeBSD.org>2002-05-31 11:52:35 +0000
commit4cc20ab1f0f3d1126126327aa298ab88c974c53d (patch)
tree9d5f24794525313566896ab89aa860515db344a6 /sys/net/raw_cb.c
parentc82593cf2c9a5b4ccd2be043f6c9ccc8af22fcc9 (diff)
downloadsrc-test2-4cc20ab1f0f3d1126126327aa298ab88c974c53d.tar.gz
src-test2-4cc20ab1f0f3d1126126327aa298ab88c974c53d.zip
Notes
Diffstat (limited to 'sys/net/raw_cb.c')
-rw-r--r--sys/net/raw_cb.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/net/raw_cb.c b/sys/net/raw_cb.c
index f984699da40e..7e45500fa694 100644
--- a/sys/net/raw_cb.c
+++ b/sys/net/raw_cb.c
@@ -36,9 +36,7 @@
#include <sys/param.h>
#include <sys/domain.h>
-#include <sys/lock.h>
#include <sys/malloc.h>
-#include <sys/mutex.h>
#include <sys/protosw.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
@@ -100,7 +98,6 @@ raw_detach(rp)
struct socket *so = rp->rcb_socket;
so->so_pcb = 0;
- SOCK_LOCK(so);
sotryfree(so);
LIST_REMOVE(rp, list);
#ifdef notdef
@@ -124,12 +121,8 @@ raw_disconnect(rp)
m_freem(dtom(rp->rcb_faddr));
rp->rcb_faddr = 0;
#endif
- SOCK_LOCK(rp->rcb_socket);
- if (rp->rcb_socket->so_state & SS_NOFDREF) {
- SOCK_UNLOCK(rp->rcb_socket);
+ if (rp->rcb_socket->so_state & SS_NOFDREF)
raw_detach(rp);
- } else
- SOCK_UNLOCK(rp->rcb_socket);
}
#ifdef notdef