aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4vf
diff options
context:
space:
mode:
authorCasey Leedom <leedom@chelsio.com>2010-07-15 22:47:06 -0700
committerDavid S. Miller <davem@davemloft.net>2010-07-15 22:47:06 -0700
commitb97d13a53d63c7db1d05d54298c7a12f86c4fbad (patch)
treeb511845aeb91acd7999b0b451e2435bc04506df7 /drivers/net/cxgb4vf
parent6929fe8a37365148228206eea8577b3524afc463 (diff)
downloadkernel_samsung_crespo-b97d13a53d63c7db1d05d54298c7a12f86c4fbad.zip
kernel_samsung_crespo-b97d13a53d63c7db1d05d54298c7a12f86c4fbad.tar.gz
kernel_samsung_crespo-b97d13a53d63c7db1d05d54298c7a12f86c4fbad.tar.bz2
cxgb4vf: fix SGE resource resource deallocation bug
Fix SGE resource resource deallocation bug. Forgot to increment the RXQ and TXQ cursors in the loop ... Signed-off-by: Casey Leedom <leedom@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4vf')
-rw-r--r--drivers/net/cxgb4vf/sge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cxgb4vf/sge.c b/drivers/net/cxgb4vf/sge.c
index f2ee9b0..eb5a1c9 100644
--- a/drivers/net/cxgb4vf/sge.c
+++ b/drivers/net/cxgb4vf/sge.c
@@ -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) {