mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
don't decrement ref count below 1 for EXT_PACKET
This commit is contained in:
parent
5f78571d1c
commit
b3fa5e2f65
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175172
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user