net: hinic: fix the issue of double release MBOX callback of VF
[ Upstream commit8ec2f4c6b2] 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:7dd29ee128("hinic: add sriov feature support") Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6603843c80
commit
0ce1ef3353
@@ -1178,7 +1178,6 @@ int hinic_vf_func_init(struct hinic_hwdev *hwdev)
|
|||||||
dev_err(&hwdev->hwif->pdev->dev,
|
dev_err(&hwdev->hwif->pdev->dev,
|
||||||
"Failed to register VF, err: %d, status: 0x%x, out size: 0x%x\n",
|
"Failed to register VF, err: %d, status: 0x%x, out size: 0x%x\n",
|
||||||
err, register_info.status, out_size);
|
err, register_info.status, out_size);
|
||||||
hinic_unregister_vf_mbox_cb(hwdev, HINIC_MOD_L2NIC);
|
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user