diff options
author | mvs <mvs@cvs.openbsd.org> | 2021-02-18 11:40:21 +0000 |
---|---|---|
committer | mvs <mvs@cvs.openbsd.org> | 2021-02-18 11:40:21 +0000 |
commit | 09efe4ecf588d363580912179fe4e3f5d9b04fe8 (patch) | |
tree | a95fb2a7a28a3b00a5723d3e0a2b1a45d4630dc1 /regress/sys | |
parent | f60209163fcabf37d66740f1aa30360a3b03c864 (diff) |
Release mbuf(9) chain with a simple m_freem(9) loop in sorflush().
Passing local copy of socket to sbrelease() is too complicated to just
free receive buffer. We don't allocate large object on the stack. Also
we don't pass unlocked socket to soassertlocked() within sbdrop(). This
was not triggered because we lock the whole layer with one lock.
Also sorflush() is now private to kern/uipc_socket.c, so it's definition
was made to be in accordance.
ok claudio@ mpi@
Diffstat (limited to 'regress/sys')
0 files changed, 0 insertions, 0 deletions