]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: Fix a loop index error of tqp statistics query
authorJian Shen <shenjian15@huawei.com>
Fri, 5 Jan 2018 10:18:13 +0000 (18:18 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:47:24 +0000 (10:47 -0500)
commit78cceef24a0d9c04cb513f41fa52f58196139b35
tree39e65c9a25277432e2d836c88fcf92287823baf0
parent0a83231f69b5bd25af64e40ef6a1b316151f7049
net: hns3: Fix a loop index error of tqp statistics query

BugLink: http://bugs.launchpad.net/bugs/1756097
An error loop index was used while querying statistics data
of tqps, which may cause call trace.

Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 driver")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 94bfaafac9d2a3c0bcca00d01e38f7597b741799)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c