FreeBSD Bugzilla – Attachment 8905 Details for
Bug 18471
mbuf and mbuf clusters can be freed multiple times
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 788 bytes, created by
dwmalone
on 2000-05-09 19:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
dwmalone
Created:
2000-05-09 19:20:00 UTC
Size:
788 bytes
patch
obsolete
>Index: mbuf.h >=================================================================== >RCS file: /cvs/FreeBSD-CVS/src/sys/sys/mbuf.h,v >retrieving revision 1.47 >diff -u -r1.47 mbuf.h >--- mbuf.h 2000/04/19 01:24:26 1.47 >+++ mbuf.h 2000/04/22 20:11:49 >@@ -381,6 +381,7 @@ > #define MCLFREE1(p) do { \ > union mcluster *_mp = (union mcluster *)(p); \ > \ >+ KASSERT(mclrefcnt[mtocl(_mp)] > 0, ("freeing free cluster")); \ > if (--mclrefcnt[mtocl(_mp)] == 0) { \ > _mp->mcl_next = mclfree; \ > mclfree = _mp; \ >@@ -415,6 +416,7 @@ > #define MFREE(m, n) MBUFLOCK( \ > struct mbuf *_mm = (m); \ > \ >+ KASSERT(_mm->m_type != MT_FREE, ("freeing free mbuf")); \ > mbstat.m_mtypes[_mm->m_type]--; \ > if (_mm->m_flags & M_EXT) \ > MEXTFREE1(m); \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18471
: 8905