From: Shaozhengchao <shaozhengchao(a)huawei.com>
commit 8d1ae26f8ac4cd548cd8696565e5028d0ea160e1 openEuler-1.0
driver inclusion
category:bugfix
bugzilla:4472
CVE:NA
-----------------------------------------------------------------------
rectify issue
Signed-off-by: Shaozhengchao <shaozhengchao(a)huawei.com>
Reviewed-by: Luoshaokai <luoshaokai(a)huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang(a)huawei.com>
Signed-off-by: Xie XiuQi <xiexiuqi(a)huawei.com>
Signed-off-by: Xin Hao <haoxing990(a)gmail.com>
---
drivers/net/ethernet/huawei/hinic/hinic_tx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_tx.c
b/drivers/net/ethernet/huawei/hinic/hinic_tx.c
index 9b584be590a5..c1ea1e6f7265 100644
--- a/drivers/net/ethernet/huawei/hinic/hinic_tx.c
+++ b/drivers/net/ethernet/huawei/hinic/hinic_tx.c
@@ -1123,7 +1123,7 @@ int hinic_setup_all_tx_resources(struct net_device *netdev)
init_txq_err:
for (i = 0; i < q_id; i++) {
- txq = &nic_dev->txqs[q_id];
+ txq = &nic_dev->txqs[i];
kfree(txq->tx_info);
}
--
2.31.0