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 <wangpeiyang1@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250228105258.1243461-1-shaojijie@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2025-03-04 12:50:59 +01:00
..
3com
8390
actions
adaptec
adi
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon net: ena: Fix incorrect indentation 2024-12-15 13:46:46 -08:00
amd Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
apm net: xgene_enet: Use helper rgmii_clock 2024-12-09 18:36:03 -08:00
apple
aquantia net: atlantic: fix warning during hot unplug 2025-02-04 14:00:35 -08:00
arc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-11-07 13:44:16 -08:00
asix
atheros
broadcom tg3: Disable tg3 PCIe AER on system reboot 2025-02-03 10:12:14 +00:00
brocade
cadence net: cadence: macb: Synchronize stats calculations 2025-02-21 16:31:35 -08:00
calxeda
cavium pci-v6.13-changes 2024-11-26 18:05:44 -08:00
chelsio ipsec-next-2025-01-09 2025-01-10 09:15:17 +00:00
cirrus
cisco enic: Fix typo in comment in table indexed by link speed 2025-01-09 12:27:09 -08:00
cortina
davicom net: davicom: fix UAF in dm9000_drv_remove 2025-01-27 15:05:37 -08:00
dec
dlink
emulex be2net: fix sleeping while atomic bugs in be_ndo_bridge_getlink 2025-03-04 11:14:15 +01:00
engleder tsnep: Link queues to NAPIs 2025-01-14 14:48:00 -08:00
ezchip
faraday
freescale net: enetc: fix the off-by-one issue in enetc_map_tx_tso_buffs() 2025-02-25 19:10:59 -08:00
fujitsu
fungible net/fungible: Remove unused fun_create_queue 2024-11-18 18:54:11 -08:00
google gve: unlink old napi when stopping a queue using queue API 2025-02-26 18:10:28 -08:00
hisilicon net: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error 2025-03-04 12:50:59 +01:00
huawei Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-12-19 11:35:07 -08:00
i825xx
ibm ibmvnic: Don't reference skb after sending to VIOS 2025-02-17 16:41:57 -08:00
intel idpf: fix checksums set in idpf_rx_rsc() 2025-02-27 07:31:41 -08:00
litex
marvell net: mvpp2: cls: Fixed Non IP flow, with vlan tag flow defination. 2025-02-26 19:27:55 -08:00
mediatek net: airoha: Fix wrong GDM4 register definition 2025-01-22 19:41:40 -08:00
mellanox net/mlx5: IRQ, Fix null string in debug print 2025-02-26 19:29:39 -08:00
meta eth: fbnic: Add hardware monitoring support via HWMON interface 2025-01-15 14:14:11 -08:00
micrel
microchip net: lan743x: convert to phylink managed EEE 2025-01-16 17:23:00 -08:00
microsoft net: mana: Cleanup "mana" debugfs dir after cleanup of all children 2025-01-10 18:11:21 -08:00
moxa
mscc net: mscc: ocelot: add TX timestamping statistics 2025-01-17 20:01:10 -08:00
myricom
natsemi
neterion
netronome nfp: bpf: Add check for nfp_app_ctrl_msg_alloc() 2025-02-20 09:35:49 +01:00
ni
nvidia eth: forcedeth: fix calling napi_enable() in atomic context 2025-01-27 14:30:49 -08:00
nxp
oki-semi
packetengines
pasemi
pensando Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-12-19 11:35:07 -08:00
qlogic qlcnic: use const 'struct bin_attribute' callbacks 2024-12-20 13:24:50 -08:00
qualcomm qca_spi: Make driver probing reliable 2024-12-09 18:26:48 -08:00
rdc
realtek eth: 8139too: fix calling napi_enable() in atomic context 2025-01-27 14:30:49 -08:00
renesas net: sh_eth: Fix missing rtnl lock in suspend/resume path 2025-01-30 11:23:01 +01:00
rocker rocker: fix link status detection in rocker_carrier_init() 2024-11-18 18:39:21 -08:00
samsung
seeq
sfc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-01-03 16:29:29 -08:00
sgi
silan
sis
smsc
socionext
stmicro stmmac: loongson: Pass correct arg to PCI function 2025-02-27 18:36:37 -08:00
sun eth: niu: fix calling napi_enable() in atomic context 2025-01-27 14:30:49 -08:00
sunplus net: ethernet: sunplus: Switch to ndo_eth_ioctl 2025-01-14 18:09:04 -08:00
synopsys
tehuti
ti net: ti: icss-iep: Reject perout generation request 2025-02-27 08:09:02 -08:00
toshiba
tundra
vertexcom net: vertexcom: mse102x: Fix tx_bytes calculation 2024-11-09 13:41:17 -08:00
via eth: via-rhine: fix calling napi_enable() in atomic context 2025-01-27 14:30:49 -08:00
wangxun net: libwx: fix firmware mailbox abnormal return 2025-01-04 17:42:15 -08:00
wiznet
xilinx net: axienet: Set mac_managed_pm 2025-02-20 09:14:04 +01:00
xircom
xscale
Kconfig ethernet: Make OA_TC6 config symbol invisible 2024-12-15 13:49:33 -08:00
Makefile
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
korina.c
lantiq_etop.c net: simplify resource acquisition + ioremap 2024-12-06 17:28:34 -08:00
lantiq_xrx200.c
oa_tc6.c net: ethernet: oa_tc6: fix tx skb race condition between reference pointers 2024-12-17 13:11:22 +01:00