Page MenuHomeFreeBSD

D43776.diff
No OneTemporary

D43776.diff

diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1439,14 +1439,16 @@
KASSERT(off >= 0, ("m_apply, negative off %d", off));
KASSERT(len >= 0, ("m_apply, negative len %d", len));
while (off > 0) {
- KASSERT(m != NULL, ("m_apply, offset > size of mbuf chain"));
+ KASSERT(m != NULL, ("m_apply, offset > size of mbuf chain "
+ "(%d extra)", off));
if (off < m->m_len)
break;
off -= m->m_len;
m = m->m_next;
}
while (len > 0) {
- KASSERT(m != NULL, ("m_apply, offset > size of mbuf chain"));
+ KASSERT(m != NULL, ("m_apply, length > size of mbuf chain "
+ "(%d extra)", len));
count = min(m->m_len - off, len);
rval = m_apply_one(m, off, count, f, arg);
if (rval)

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 3:20 AM (21 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15550293
Default Alt Text
D43776.diff (772 B)

Event Timeline