From: Casey Leedom Date: Fri, 16 Jul 2010 05:47:06 +0000 (-0700) Subject: cxgb4vf: fix SGE resource resource deallocation bug X-Git-Tag: MMI-PSA29.97-13-9~23092^2~191 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b97d13a53d63c7db1d05d54298c7a12f86c4fbad;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/cxgb4vf/sge.c b/drivers/net/cxgb4vf/sge.c index f2ee9b0bcc37..eb5a1c9cb2d3 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) {