]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net: hinic: fix incorrect assignment issue in hinic_set_interrupt_cfg()
authorZhengchao Shao <shaozhengchao@huawei.com>
Wed, 19 Oct 2022 09:57:51 +0000 (17:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Nov 2022 15:00:29 +0000 (00:00 +0900)
[ Upstream commit c0605cd6750f2db9890c43a91ea4d77be8fb4908 ]

The value of lli_credit_cnt is incorrectly assigned, fix it.

Fixes: a0337c0dee68 ("hinic: add support to set and get irq coalesce")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c

index 2127a48749a8c70a1e830de902b8ac3c87be495c..1cd812c5667249ad035ae5bfd06c7810c0641030 100644 (file)
@@ -883,7 +883,7 @@ int hinic_set_interrupt_cfg(struct hinic_hwdev *hwdev,
        if (err)
                return -EINVAL;
 
-       interrupt_info->lli_credit_cnt = temp_info.lli_timer_cnt;
+       interrupt_info->lli_credit_cnt = temp_info.lli_credit_cnt;
        interrupt_info->lli_timer_cnt = temp_info.lli_timer_cnt;
 
        err = hinic_msg_to_mgmt(&pfhwdev->pf_to_mgmt, HINIC_MOD_COMM,