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)
commit8ec2f4c6b2e11a4249bba77460f0cfe6d95a82f8
tree1f2e118e2d95db835eed56b7923062b889a207ed
parent363cc87767f6ddcfb9158ad2e2afa2f8d5c4b94e
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: 7dd29ee12865 ("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