Free mbufs when busdma loading fails.
Reviewed by: erj, sbruno MFC after: 1 month
This commit is contained in:
parent
0697ab6ec0
commit
577c341353
@ -2029,9 +2029,6 @@ em_xmit(struct tx_ring *txr, struct mbuf **m_headp)
|
||||
/* Try it again, but only once */
|
||||
remap = 0;
|
||||
goto retry;
|
||||
} else if (error == ENOMEM) {
|
||||
adapter->no_tx_dma_setup++;
|
||||
return (error);
|
||||
} else if (error != 0) {
|
||||
adapter->no_tx_dma_setup++;
|
||||
m_freem(*m_headp);
|
||||
|
@ -1908,9 +1908,6 @@ igb_xmit(struct tx_ring *txr, struct mbuf **m_headp)
|
||||
goto retry;
|
||||
} else
|
||||
return (error);
|
||||
case ENOMEM:
|
||||
txr->no_tx_dma_setup++;
|
||||
return (error);
|
||||
default:
|
||||
txr->no_tx_dma_setup++;
|
||||
m_freem(*m_headp);
|
||||
|
Loading…
Reference in New Issue
Block a user