mbuf leak in the error case has been fixed. When we have
an error, go ahead and m_freem the buffer. PR: 32666 Submitted by: Chi-Fung Fan
This commit is contained in:
parent
9099eb660e
commit
0d9ad27e7e
@ -2105,8 +2105,10 @@ outloop:
|
||||
}
|
||||
} else {
|
||||
len = ed_pio_write_mbufs(sc, m, (int)buffer);
|
||||
if (len == 0)
|
||||
if (len == 0) {
|
||||
m_freem(m0);
|
||||
goto outloop;
|
||||
}
|
||||
}
|
||||
|
||||
sc->txb_len[sc->txb_new] = max(len, (ETHER_MIN_LEN-ETHER_CRC_LEN));
|
||||
|
Loading…
x
Reference in New Issue
Block a user