uipc: Hold unp_token before calling unp_find_lockref()
commit2f8c108bd4b7e18519ea0b1ecd0d889776121703
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 3 Nov 2015 03:32:22 +0000 (3 11:32 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 3 Nov 2015 03:32:22 +0000 (3 11:32 +0800)
tree9b7e0a0c3e7cfc14b6fa3998da4dc53f3ab98ea1
parent28800651998550a7bc1d97d979532841a74698c5
uipc: Hold unp_token before calling unp_find_lockref()

Mainly to avoid name resolution and v_socket accessing races.
Add comment about it.
sys/kern/uipc_usrreq.c