don't decrement ref count below 1 for EXT_PACKET

This commit is contained in:
Kip Macy 2008-01-09 08:01:42 +00:00
parent 5f78571d1c
commit b3fa5e2f65
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175172

View File

@ -384,7 +384,7 @@ mb_free_ext_fast(struct mbuf_iovec *mi, int type, int idx)
*/
while (dofree == 0) {
cnt = *(mi->mi_refcnt);
if (mi->mi_type == EXT_PACKET) {
if (mi->mi_type == EXT_PACKET && cnt == 1) {
dofree = 1;
break;
}