Return-path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:2272 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751197Ab3GKPD5 (ORCPT ); Thu, 11 Jul 2013 11:03:57 -0400 Cc: Kirshenbaum Erez , Vladimir Kondratiev , , "Luis R . Rodriguez" From: Vladimir Kondratiev To: "John W . Linville" Subject: [PATCH 2/5] wil6210: fix wrong index in wil_vring_free Date: Thu, 11 Jul 2013 18:03:38 +0300 Message-ID: <1373555021-11763-3-git-send-email-qca_vkondrat@qca.qualcomm.com> (sfid-20130711_170410_316834_ABBA5822) In-Reply-To: <1373555021-11763-1-git-send-email-qca_vkondrat@qca.qualcomm.com> References: <1373555021-11763-1-git-send-email-qca_vkondrat@qca.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: When destroying Rx vring, branch for Rx used wrong Tx descriptor: while SW context was taken for "head", HW descriptor was, by mistake, taken from "tail" Signed-off-by: Vladimir Kondratiev --- drivers/net/wireless/ath/wil6210/txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c index d240b24..8fde73a 100644 --- a/drivers/net/wireless/ath/wil6210/txrx.c +++ b/drivers/net/wireless/ath/wil6210/txrx.c @@ -133,7 +133,7 @@ static void wil_vring_free(struct wil6210_priv *wil, struct vring *vring, } else { /* rx */ struct vring_rx_desc dd, *d = ⅆ volatile struct vring_rx_desc *_d = - &vring->va[vring->swtail].rx; + &vring->va[vring->swhead].rx; *d = *_d; pa = wil_desc_addr(&d->dma.addr); -- 1.8.1.2