Skip to content

Commit

Permalink
cxgb4vf: fix SGE resource resource deallocation bug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Casey Leedom authored and David S. Miller committed Jul 16, 2010
1 parent 6929fe8 commit b97d13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/cxgb4vf/sge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b97d13a

Please sign in to comment.