diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-11-02 17:15:13 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-11-02 17:15:13 +0000 |
commit | 7dde7f3287638e58b27d3d796a647a9a2b660842 (patch) | |
tree | 32a8c4821b824fb950d6820adb5d88c5ade2b57c /sys/kern/uipc_socket.c | |
parent | 6eaf568807a120c6c1b867f30604e801fc794705 (diff) | |
download | FreeBSD-src-7dde7f3287638e58b27d3d796a647a9a2b660842.zip FreeBSD-src-7dde7f3287638e58b27d3d796a647a9a2b660842.tar.gz |
Acquire the accept mutex in soabort() before calling sotryfree(), as
that is now required.
RELENG_5_3 candidate.
Foot provided by: Dikshie <dikshie at ppk dot itb dot ac dot id>
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r-- | sys/kern/uipc_socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 3a9fd2f..9a2c0e3 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -490,6 +490,7 @@ soabort(so) error = (*so->so_proto->pr_usrreqs->pru_abort)(so); if (error) { + ACCEPT_LOCK(); SOCK_LOCK(so); sotryfree(so); /* note: does not decrement the ref count */ return error; |