summaryrefslogtreecommitdiff
path: root/sys/kern/sys_socket.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-11-17 08:01:10 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-11-17 08:01:10 +0000
commitdb446e30cc9be65ecfd58882ca931983785ec5f4 (patch)
tree58ad6e043341e4831c8010d803a24ce8c0b279b1 /sys/kern/sys_socket.c
parentd533c6e9a5d662ad755583cf24a6d3bfc6ffb438 (diff)
Notes
Diffstat (limited to 'sys/kern/sys_socket.c')
-rw-r--r--sys/kern/sys_socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c
index f40d230e2766..4a7911d5c462 100644
--- a/sys/kern/sys_socket.c
+++ b/sys/kern/sys_socket.c
@@ -223,8 +223,10 @@ soo_poll(fp, events, active_cred, td)
struct socket *so = fp->f_data;
int error;
+ NET_LOCK_GIANT();
error = (so->so_proto->pr_usrreqs->pru_sopoll)
(so, events, fp->f_cred, td);
+ NET_UNLOCK_GIANT();
return (error);
}