cxgb4vf: fix SGE resource resource deallocation bug
authorCasey Leedom <leedom@chelsio.com>
Fri, 16 Jul 2010 05:47:06 +0000 (22:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jul 2010 05:47:06 +0000 (22:47 -0700)
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>
drivers/net/cxgb4vf/sge.c

index f2ee9b0bcc37049f7cd1721df4c259fa10cdbda4..eb5a1c9cb2d3b588a309ea9cefc326ef1ee71b81 100644 (file)
@@ -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) {