Add missing solock()/sounlock() dances around sbreserve().
authormpi <mpi@openbsd.org>
Tue, 27 Jun 2017 12:02:43 +0000 (12:02 +0000)
committermpi <mpi@openbsd.org>
Tue, 27 Jun 2017 12:02:43 +0000 (12:02 +0000)
commit2f18f0241708f39e790db0193c6527f977a05a4e
tree4e9dc0341efc37006abaaf3099c764d496036fcf
parent9b1ab8d172a80a377bb23d1821e0c58225147d58
Add missing solock()/sounlock() dances around sbreserve().

While here document an abuse of parent socket's lock.

Problem reported by krw@, analysis and ok bluhm@
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/nfs/nfs_socket.c
sys/nfs/nfs_syscalls.c