Unverified Commit 83d34eae authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8693 【OLK-5.10】Fix some problems about patch "net: hns3: release PTP...

!8693 【OLK-5.10】Fix some problems about patch "net: hns3: release PTP resources if pf initialization failed"

Merge Pull Request from: @chenyi211 
 
Fixes: a6f262bd("net: hns3: release PTP resources if pf initialization failed") 
 
Link:https://gitee.com/openeuler/kernel/pulls/8693

 

Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 87d5a74b 4e18b4ea
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -12734,10 +12734,10 @@ static int hclge_init_ae_dev(struct hnae3_ae_dev *ae_dev)

	return 0;

err_sysfs_unregister:
	hclge_unregister_sysfs(hdev);
err_ptp_uninit:
	hclge_ptp_uninit(hdev);
err_sysfs_unregister:
	hclge_unregister_sysfs(hdev);
err_mdiobus_unreg:
	if (hdev->hw.mac.phydev)
		mdiobus_unregister(hdev->hw.mac.mdio_bus);