Date: Fri, 11 Jan 2002 11:00:45 +0900 (JST) From: Toshinori Hirano <hirano@cc.kagu.sut.ac.jp> To: freebsd-bugs@FreeBSD.ORG Subject: patch of m_pulldown function (4.4 release) Message-ID: <20020111.110045.36849318.hirano@cc.kagu.sut.ac.jp>
next in thread | raw e-mail | index | archive | help
Dear bug report team. Please, check m_pulldown() of 4.4 release. This patch check that whether the mbuf "n->m_next" is a shared cluster or not, and the target is contained in the mbuf "n" and "n->m_next". I removed "(off == 0 || offp)" because the code within if clause set "off" to "0". ----- Toshinori Hirano E-mail: hirano@cc.kagu.sut.ac.jp --- src/sys/kern/uipc_mbuf2.c.ORG Tue Jul 3 20:01:37 2001 +++ src/sys/kern/uipc_mbuf2.c Fri Jan 11 09:35:35 2002 @@ -193,8 +193,8 @@ m_adj(n->m_next, tlen); goto ok; } - if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen && - !sharedcluster) { + if (M_LEADINGSPACE(n->m_next) >= hlen && + !M_SHAREDCLUSTER(n->m_next) && n->m_next->m_len + hlen >= len) { n->m_next->m_data -= hlen; n->m_next->m_len += hlen; bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020111.110045.36849318.hirano>