From 27144fdb96f362cf15e4647bd63779b5bc90685e Mon Sep 17 00:00:00 2001 From: Shaozhengchao Date: Wed, 8 Jan 2020 18:46:21 +0800 Subject: [PATCH 2788/2944] openeuler: net/hinic: rectify issue commit 8d1ae26f8ac4cd548cd8696565e5028d0ea160e1 openEuler-1.0 driver inclusion category:bugfix bugzilla:4472 CVE:NA ----------------------------------------------------------------------- rectify issue Signed-off-by: Shaozhengchao Reviewed-by: Luoshaokai Signed-off-by: Yang Yingliang Signed-off-by: Xie XiuQi Signed-off-by: Xin Hao Reviewed-by: Baolin Wang --- 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 9b584be..c1ea1e6 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); } -- 1.8.3.1