Skip to contentSkip to conversation

cxgb4vf: fix SGE resource resource deallocation bug

PATCH Applied Casey Leedom 2 participants 2 messages Jul 15, 2010 – Jul 16, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cxgb4vf: fix SGE resource resource deallocation bug

Quoted 1 line

From 1ecf246196c43d75e75525211450a64d650f4fbc Mon Sep 17 00:00:00 2001

From: Casey Leedom <[email protected]>
Date: Thu, 15 Jul 2010 15:50:16 -0700
Subject: [PATCH] cxgb4vf: fix SGE resource resource deallocation bug

Fix SGE resource resource deallocation bug. Forgot to increment the RXQ and TXQ cursors in the loop ...

---
 drivers/net/cxgb4vf/sge.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/cxgb4vf/sge.c +1 -1
index f2ee9b0..eb5a1c9 100644
@@ -2351,7 +2351,7 @@ void t4vf_free_sge_resources(struct adapter *adapter)
 	struct sge_rspq *intrq = &s->intrq;
 	int qs;
 
-	for (qs = 0; qs < adapter->sge.ethqsets; qs++) {
+	for (qs = 0; qs < adapter->sge.ethqsets; qs++, rxq++, txq++) {
 		if (rxq->rspq.desc)
 			free_rspq_fl(adapter, &rxq->rspq, &rxq->fl);
 		if (txq->q.desc) {
Signature · 1 line
1.7.0.4
maintainer Applied
#1 lore raw

From: Casey Leedom <[email protected]>
Date: Thu, 15 Jul 2010 15:54:43 -0700

Quoted 9 lines
Quoted 1 line

From 1ecf246196c43d75e75525211450a64d650f4fbc Mon Sep 17 00:00:00 2001

From: Casey Leedom <[email protected]>
Date: Thu, 15 Jul 2010 15:50:16 -0700
Subject: [PATCH] cxgb4vf: fix SGE resource resource deallocation bug

Fix SGE resource resource deallocation bug. Forgot to increment the RXQ and TXQ cursors in the loop ...

Applied, thanks Casey.