From: Lipeng <lipeng321@huawei.com>
To: <davem@davemloft.net>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linuxarm@huawei.com>, <yisen.zhuang@huawei.com>,
<salil.mehta@huawei.com>, <lipeng321@huawei.com>
Subject: [PATCH net-next 1/5] net: hns3: fixes the ring index in hns3_fini_ring
Date: Tue, 10 Oct 2017 16:42:03 +0800 [thread overview]
Message-ID: <1507624927-98008-2-git-send-email-lipeng321@huawei.com> (raw)
In-Reply-To: <1507624927-98008-1-git-send-email-lipeng321@huawei.com>
This patch fixes the ring index in hns3_fini_ring.
Signed-off-by: Lipeng <lipeng321@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
index 26bbc91..acb82cf 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
@@ -2661,7 +2661,7 @@ static int hns3_init_all_ring(struct hns3_nic_priv *priv)
out_when_alloc_ring_memory:
for (j = i - 1; j >= 0; j--)
- hns3_fini_ring(priv->ring_data[i].ring);
+ hns3_fini_ring(priv->ring_data[j].ring);
return -ENOMEM;
}
--
1.9.1
next prev parent reply other threads:[~2017-10-10 8:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-10 8:42 [PATCH net-next 0/5] Support set_ringparam and {set|get}_rxnfc ethtool commands Lipeng
2017-10-10 8:42 ` Lipeng [this message]
2017-10-10 8:42 ` [PATCH net-next 2/5] net: hns3: add support for set_ringparam Lipeng
2017-10-10 8:42 ` [PATCH net-next 3/5] net: hns3: add support for set_rxnfc Lipeng
2017-10-10 8:42 ` [PATCH net-next 4/5] net: hns3: add support for ETHTOOL_GRXFH Lipeng
2017-10-10 8:42 ` [PATCH net-next 5/5] net: hns3: fix the ring count for ETHTOOL_GRXRINGS Lipeng
2017-10-10 20:09 ` [PATCH net-next 0/5] Support set_ringparam and {set|get}_rxnfc ethtool commands David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1507624927-98008-2-git-send-email-lipeng321@huawei.com \
--to=lipeng321@huawei.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=netdev@vger.kernel.org \
--cc=salil.mehta@huawei.com \
--cc=yisen.zhuang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).