diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2004-07-22 18:35:43 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2004-07-22 18:35:43 +0000 |
| commit | 1c1ce9253fb52a3befc1c6179e57c8ce2dfd5187 (patch) | |
| tree | f7e2beb855def63afc1059aa39f7053e07c81046 /sys/kern/sys_socket.c | |
| parent | df04411ac4c9744d1dbc38bd50c27d8ee5c261cd (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 e59823cb0621..e1de4b79702d 100644 --- a/sys/kern/sys_socket.c +++ b/sys/kern/sys_socket.c @@ -262,11 +262,13 @@ soo_close(fp, td) int error = 0; struct socket *so; + NET_LOCK_GIANT(); so = fp->f_data; fp->f_ops = &badfileops; fp->f_data = NULL; if (so) error = soclose(so); + NET_UNLOCK_GIANT(); return (error); } |
