From 31e85bd9cd30ffd76e573b65e7b5b50f46de9e97 Mon Sep 17 00:00:00 2001 From: Steven Hartland Date: Sat, 12 Jan 2013 16:05:55 +0000 Subject: [PATCH] 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 --- sys/dev/e1000/if_igb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/e1000/if_igb.c b/sys/dev/e1000/if_igb.c index 8eb3011799e9..efcbdfd77fb1 100644 --- a/sys/dev/e1000/if_igb.c +++ b/sys/dev/e1000/if_igb.c @@ -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);