fix mbuf leak if it does not fit in software queue
mbuf should be owned by if_transmit function in any case. Submitted-by: Andrew Rybchenko <Andrew.Rybchenko at oktetlabs.ru> Sponsored by: Solarflare Communications, Inc.
This commit is contained in:
parent
d4f95c889d
commit
10d0bdca87
@ -536,6 +536,7 @@ sfxge_tx_packet_add(struct sfxge_txq *txq, struct mbuf *m)
|
||||
return (0);
|
||||
|
||||
fail:
|
||||
m_freem(m);
|
||||
return (rc);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user