diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2008-01-23 12:07:17 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2008-01-23 12:07:17 +0000 |
commit | b76a85f059181d2e6f901bc0578482bf94f85e70 (patch) | |
tree | d57cfb42b32847b512dd0c70c829474605815861 | |
parent | 2acf48afc91dc97debb18c37096823dae9673664 (diff) |
Notes
-rw-r--r-- | sys/kern/uipc_usrreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 682496e2cb63..a0a54285b898 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -1122,7 +1122,6 @@ unp_connect(struct socket *so, struct sockaddr *nam, struct thread *td) struct sockaddr *sa; UNP_GLOBAL_WLOCK_ASSERT(); - UNP_GLOBAL_WUNLOCK(); unp = sotounpcb(so); KASSERT(unp != NULL, ("unp_connect: unp == NULL")); @@ -1137,6 +1136,7 @@ unp_connect(struct socket *so, struct sockaddr *nam, struct thread *td) UNP_PCB_UNLOCK(unp); return (EALREADY); } + UNP_GLOBAL_WUNLOCK(); unp->unp_flags |= UNP_CONNECTING; UNP_PCB_UNLOCK(unp); |