Files
linux/drivers/net/ethernet
Peiyang Wang b7365eab39 net: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error
During the initialization of ptp, hclge_ptp_get_cycle might return an error
and returned directly without unregister clock and free it. To avoid that,
call hclge_ptp_destroy_clock to unregist and free clock if
hclge_ptp_get_cycle failed.

Fixes: 8373cd38a8 ("net: hns3: change the method of obtaining default ptp cycle")
Signed-off-by: Peiyang Wang <[email protected]>
Signed-off-by: Jijie Shao <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
2025-03-04 12:50:59 +01:00
..
…
…
…
…
…
2025-01-14 14:48:00 -08:00
…
…
…
…
…
…
…
…
2025-02-20 09:14:04 +01:00
…
…
…
…
…
…
…
…
…