diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-11-17 08:01:10 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-11-17 08:01:10 +0000 |
| commit | db446e30cc9be65ecfd58882ca931983785ec5f4 (patch) | |
| tree | 58ad6e043341e4831c8010d803a24ce8c0b279b1 /sys/kern/sys_socket.c | |
| parent | d533c6e9a5d662ad755583cf24a6d3bfc6ffb438 (diff) | |
Notes
Diffstat (limited to 'sys/kern/sys_socket.c')
| -rw-r--r-- | sys/kern/sys_socket.c | 2 |
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); } |
