提交 b97d13a5 编写于 作者: C Casey Leedom 提交者: David S. Miller

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: NCasey Leedom <leedom@chelsio.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6929fe8a
...@@ -2351,7 +2351,7 @@ void t4vf_free_sge_resources(struct adapter *adapter) ...@@ -2351,7 +2351,7 @@ void t4vf_free_sge_resources(struct adapter *adapter)
struct sge_rspq *intrq = &s->intrq; struct sge_rspq *intrq = &s->intrq;
int qs; int qs;
for (qs = 0; qs < adapter->sge.ethqsets; qs++) { for (qs = 0; qs < adapter->sge.ethqsets; qs++, rxq++, txq++) {
if (rxq->rspq.desc) if (rxq->rspq.desc)
free_rspq_fl(adapter, &rxq->rspq, &rxq->fl); free_rspq_fl(adapter, &rxq->rspq, &rxq->fl);
if (txq->q.desc) { if (txq->q.desc) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册