Date: Mon, 4 May 2009 20:48:07 +0000 (UTC) From: Maksim Yevmenkin <emax@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern uipc_sockbuf.c Message-ID: <200905042048.n44KmInd023243@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
emax 2009-05-04 20:48:07 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
sys/kern uipc_sockbuf.c
Log:
SVN rev 191796 on 2009-05-04 20:48:07Z by emax
MFC r191366
Fix sbappendrecord_locked().
The main problem is that sbappendrecord_locked() relies on sbcompress()
to set sb_mbtail. This will not happen if sbappendrecord_locked() is
called with mbuf chain made of exactly one mbuf (i.e. m0->m_next == NULL).
In this case sbcompress() will be called with m == NULL and will do
nothing. I'm not entirely sure if m == NULL is a valid argument for
sbcompress(), and, it rather pointless to call it like that, but keep
calling it so it can do SBLASTMBUFCHK().
PR: kern/126742
Investigated by: pluknet < pluknet -at- gmail -dot- com >
No response from: freebsd-current@, freebsd-bluetooth@
Revision Changes Path
1.171.2.5 +2 -8 src/sys/kern/uipc_sockbuf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905042048.n44KmInd023243>
