From patchwork Thu Jul 15 22:54:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Casey Leedom X-Patchwork-Id: 59049 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0B44AB707E for ; Fri, 16 Jul 2010 08:57:28 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934945Ab0GOW5X (ORCPT ); Thu, 15 Jul 2010 18:57:23 -0400 Received: from stargate.chelsio.com ([67.207.112.58]:18097 "EHLO stargate.chelsio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933621Ab0GOW5W convert rfc822-to-8bit (ORCPT ); Thu, 15 Jul 2010 18:57:22 -0400 Received: from maui.asicdesigners.com (maui.asicdesigners.com [10.192.180.15]) by stargate.chelsio.com (8.13.1/8.13.1) with SMTP id o6FMvMFr002985 for ; Thu, 15 Jul 2010 15:57:22 -0700 Received: from okham.asicdesigners.com ([10.192.164.4]) by maui.asicdesigners.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 15 Jul 2010 15:54:43 -0700 From: Casey Leedom Organization: Chelsio Communications, Inc. To: netdev@vger.kernel.org Subject: [PATCH] cxgb4vf: fix SGE resource resource deallocation bug Date: Thu, 15 Jul 2010 15:54:43 -0700 User-Agent: KMail/1.13.2 (Linux/2.6.32-23-generic; KDE/4.4.2; x86_64; ; ) MIME-Version: 1.0 Message-Id: <201007151554.43269.leedom@chelsio.com> X-OriginalArrivalTime: 15 Jul 2010 22:54:44.0010 (UTC) FILETIME=[B74858A0:01CB2470] Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From 1ecf246196c43d75e75525211450a64d650f4fbc Mon Sep 17 00:00:00 2001 From: Casey Leedom Date: Thu, 15 Jul 2010 15:50:16 -0700 Subject: [PATCH] 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 --- drivers/net/cxgb4vf/sge.c | 2 +- 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) {