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:
George V. Neville-Neil 2014-03-18 15:01:32 +00:00
parent d4f95c889d
commit 10d0bdca87

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);
}