aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_socket.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2007-08-06 14:26:03 +0000
committerRobert Watson <rwatson@FreeBSD.org>2007-08-06 14:26:03 +0000
commit0bf686c1257e2e7944a4cee9d9d628280facaa3d (patch)
tree63e9e0c42ec5669b83e25b5f9cbdcbee7e1be6dc /sys/compat/linux/linux_socket.c
parentec2af96ad1603562dcbcad9de48a2d0692367e14 (diff)
Notes
Diffstat (limited to 'sys/compat/linux/linux_socket.c')
-rw-r--r--sys/compat/linux/linux_socket.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 553a657d42e9..e6ac278060dd 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -670,7 +670,6 @@ linux_connect(struct thread *td, struct linux_connect_args *args)
* socket and use the file descriptor reference instead of
* creating a new one.
*/
- NET_LOCK_GIANT();
error = fgetsock(td, linux_args.s, &so, &fflag);
if (error == 0) {
error = EISCONN;
@@ -683,7 +682,6 @@ linux_connect(struct thread *td, struct linux_connect_args *args)
}
fputsock(so);
}
- NET_UNLOCK_GIANT();
return (error);
}