Re: Two fixes for m_split() in sys/kern/uipc_mbuf.c.

2017-01-24 Thread Alexander Bluhm
On Tue, Jan 24, 2017 at 03:22:13PM +0100, Imre Vad?sz wrote: > This patch fixes two issues in m_split() in sys/kern/uipc_mbuf.c, which > are correctly handled in FreeBSD's m_split(): OK bluhm@ > > If the m_split() would split an mbuf chain exactly between 2 mbufs (i.e. > remain == 0), the return

Two fixes for m_split() in sys/kern/uipc_mbuf.c.

2017-01-24 Thread Imre Vadász
This patch fixes two issues in m_split() in sys/kern/uipc_mbuf.c, which are correctly handled in FreeBSD's m_split(): If the m_split() would split an mbuf chain exactly between 2 mbufs (i.e. remain == 0), the returned M_PKTHDR might unnecessarily reference an mbuf cluster from the first part of th