]> git.baikalelectronics.ru Git - kernel.git/commit
net: hinic: fix the issue of double release MBOX callback of VF
authorZhengchao Shao <shaozhengchao@huawei.com>
Wed, 19 Oct 2022 09:57:54 +0000 (17:57 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Oct 2022 04:09:48 +0000 (21:09 -0700)
commit4c23413b92247918e507c25bcc69e938c5627c2e
tree1f2e118e2d95db835eed56b7923062b889a207ed
parent74e5b8fd9703ff081422264602ff772cb7acdc4b
net: hinic: fix the issue of double release MBOX callback of VF

In hinic_vf_func_init(), if VF fails to register information with PF
through the MBOX, the MBOX callback function of VF is released once. But
it is released again in hinic_init_hwdev(). Remove one.

Fixes: fb7d7b5fb3de ("hinic: add sriov feature support")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/huawei/hinic/hinic_sriov.c