mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 18:20:49 -04:00
uipc_socket: handle socket buffer locks in sopeeloff
PR: 278171
Reviewed by: markj
Fixes: a4fc41423f ("sockets: enable protocol specific socket buffers")
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D44640
This commit is contained in:
parent
7df0ef5f48
commit
681711b77c
1 changed files with 4 additions and 0 deletions
|
|
@ -922,6 +922,10 @@ sopeeloff(struct socket *head)
|
|||
so->so_snd.sb_timeo = head->so_snd.sb_timeo;
|
||||
so->so_rcv.sb_flags |= head->so_rcv.sb_flags & SB_AUTOSIZE;
|
||||
so->so_snd.sb_flags |= head->so_snd.sb_flags & SB_AUTOSIZE;
|
||||
if ((so->so_proto->pr_flags & PR_SOCKBUF) == 0) {
|
||||
so->so_snd.sb_mtx = &so->so_snd_mtx;
|
||||
so->so_rcv.sb_mtx = &so->so_rcv_mtx;
|
||||
}
|
||||
|
||||
soref(so);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue