summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-11-02 17:15:13 +0000
committerrwatson <rwatson@FreeBSD.org>2004-11-02 17:15:13 +0000
commit7dde7f3287638e58b27d3d796a647a9a2b660842 (patch)
tree32a8c4821b824fb950d6820adb5d88c5ade2b57c /sys/kern/uipc_socket.c
parent6eaf568807a120c6c1b867f30604e801fc794705 (diff)
downloadFreeBSD-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.c1
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;
OpenPOWER on IntegriCloud