mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Fixed mbuf free when receive structures fail to allocate.
This prevents quad igb card on high core machines, without any nmbcluster or igb queue tuning wedging the boot process if all nics are configured. Reviewed by: jfv Approved by: pjd (mentor) MFC after: 1 week
This commit is contained in:
parent
aa333a1880
commit
31e85bd9cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245334
@ -4330,8 +4330,8 @@ igb_setup_receive_structures(struct adapter *adapter)
|
||||
* the rings that completed, the failing case will have
|
||||
* cleaned up for itself. 'i' is the endpoint.
|
||||
*/
|
||||
for (int j = 0; j > i; ++j) {
|
||||
rxr = &adapter->rx_rings[i];
|
||||
for (int j = 0; j < i; ++j) {
|
||||
rxr = &adapter->rx_rings[j];
|
||||
IGB_RX_LOCK(rxr);
|
||||
igb_free_receive_ring(rxr);
|
||||
IGB_RX_UNLOCK(rxr);
|
||||
|
Loading…
Reference in New Issue
Block a user