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:
gnn 2014-03-18 15:01:32 +00:00
parent ea27b8b541
commit caea60395d

View File

@ -536,6 +536,7 @@ sfxge_tx_packet_add(struct sfxge_txq *txq, struct mbuf *m)
return (0);
fail:
m_freem(m);
return (rc);
}