linux/drivers/net/ethernet/freescale
Johan Hovold da717540ac net: gianfar: fix device leak when querying time stamp info
Make sure to drop the reference to the ptp device taken by
of_find_device_by_node() when querying the time stamping capabilities.

Note that holding a reference to the ptp device does not prevent its
driver data from going away.

Fixes: 7349a74ea7 ("net: ethernet: gianfar_ethtool: get phc index through drvdata")
Cc: stable@vger.kernel.org	# 4.18
Cc: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250725171213.880-4-johan@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-07-30 18:02:47 -07:00
..
dpaa net: dpaa: fix device leak when querying time stamp info 2025-07-30 18:02:47 -07:00
dpaa2 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-07-24 11:10:46 -07:00
enetc net: enetc: fix device and OF node leak at probe 2025-07-30 18:02:47 -07:00
fman net: fman_memac: Don't use of_property_read_bool on non-boolean property managed 2025-06-11 14:26:22 -07:00
fs_enet net: ethernet: fs_enet: Use %pa to format resource_size_t 2024-10-15 10:55:54 -07:00
fec_main.c net: fec: access ->pp through netmem_desc instead of page 2025-07-23 17:46:55 -07:00
fec_mpc52xx_phy.c net: fec_mpc52xx_phy: Use %pa to format resource_size_t 2024-10-15 10:55:54 -07:00
fec_mpc52xx.c net: fec: fix typos found by codespell 2025-06-19 15:27:52 -07:00
fec_mpc52xx.h
fec_ptp.c Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
fec.h net: fec: sort the includes by alphabetic order 2025-06-19 15:27:53 -07:00
fsl_pq_mdio.c net: fsl_pq_mdio: use dev_err_probe 2025-07-26 11:27:25 -07:00
gianfar_ethtool.c net: gianfar: fix device leak when querying time stamp info 2025-07-30 18:02:47 -07:00
gianfar.c net: gianfar: Use device_get_named_child_node_count() 2025-06-19 15:36:21 -07:00
gianfar.h
Kconfig net: phy: remove Kconfig symbol MDIO_DEVRES 2025-05-14 19:12:19 -07:00
Makefile
ucc_geth_ethtool.c net: freescale: ucc_geth: phylink conversion 2024-12-06 13:41:53 +00:00
ucc_geth.c net: freescale: ucc_geth: make ugeth_mac_ops be static const 2025-02-18 18:08:18 -08:00
ucc_geth.h net: freescale: ucc_geth: remove unused PHY_INIT_TIMEOUT and PHY_CHANGE_TIME 2025-02-11 16:34:58 -08:00
xgmac_mdio.c