mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 07:59:23 +00:00
Account for packets we clean out when we disconnect.
This commit is contained in:
parent
9282307a5d
commit
a5b5959dc8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62467
@ -706,8 +706,10 @@ ngmn_disconnect(hook_p hook)
|
||||
|
||||
/* Free all transmit descriptors and mbufs */
|
||||
for (dp = sc->ch[chan]->x1; dp ; dp = dp2) {
|
||||
if (dp->m)
|
||||
if (dp->m) {
|
||||
sc->ch[chan]->tx_pending -= dp->m->m_pkthdr.len;
|
||||
m_freem(dp->m);
|
||||
}
|
||||
sc->ch[chan]->x1 = dp2 = dp->vnext;
|
||||
mn_free_desc(dp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user