]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move the dom_dispose and pru_detach calls in sofree() earlier. Only after
authorGleb Smirnoff <glebius@FreeBSD.org>
Thu, 22 Mar 2007 13:21:24 +0000 (13:21 +0000)
committerGleb Smirnoff <glebius@FreeBSD.org>
Thu, 22 Mar 2007 13:21:24 +0000 (13:21 +0000)
commitcd68a3f706b8dbc78a1d0f57a41913d3c710b79d
tree9777ba295373e3cf6062207c386dd30c26c21f03
parent9406b2748900b7be06a921de955a4c2f714632b1
Move the dom_dispose and pru_detach calls in sofree() earlier. Only after
calling pru_detach we can be absolutely sure, that we don't have any
references to the socket in the stack.

This closes race between lockless sbdestroy() and data arriving on socket.

Reviewed by: rwatson
sys/kern/uipc_socket.c