diff options
author | jhb <jhb@FreeBSD.org> | 2007-04-11 13:47:24 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-04-11 13:47:24 +0000 |
commit | 081fdb71d770c861e7e045452061a36c8fe2f9a4 (patch) | |
tree | 67c7c256791225d30f7baa101fdc1cfc95a4a772 /sys/dev | |
parent | 926c0ee8ef84a79a7ba03d0141571c7f57032647 (diff) | |
download | FreeBSD-src-081fdb71d770c861e7e045452061a36c8fe2f9a4.zip FreeBSD-src-081fdb71d770c861e7e045452061a36c8fe2f9a4.tar.gz |
Fix m_freem_vec() to actually traverse the mbuf chain. This avoids
double free's and an infinite loop.
CID: 1834
Found by: Coverity Prevent (tm)
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cxgb/sys/mvec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/cxgb/sys/mvec.h b/sys/dev/cxgb/sys/mvec.h index 31febe5..95b76cd 100644 --- a/sys/dev/cxgb/sys/mvec.h +++ b/sys/dev/cxgb/sys/mvec.h @@ -135,6 +135,7 @@ m_freem_vec(struct mbuf *m) mb_free_ext(m); else uma_zfree(zone_mbuf, m); + m = n; } } |