linux-loongson/drivers/net/ethernet/freescale/dpaa
Johan Hovold 3fa840230f net: dpaa: 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: 17ae0b0ee9 ("dpaa_eth: add the get_ts_info interface for ethtool")
Cc: stable@vger.kernel.org	# 4.19
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-2-johan@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-07-30 18:02:47 -07:00
..
dpaa_eth_sysfs.c
dpaa_eth_trace.h net: dpaa_eth: print FD status in CPU endianness in dpaa_eth_fd tracepoint 2024-10-31 19:18:46 -07:00
dpaa_eth.c dpaa_eth: don't use fixed_phy_change_carrier 2025-06-18 18:28:54 -07:00
dpaa_eth.h net: dpaa: eliminate NR_CPUS dependency in egress_fqs[] and conf_fqs[] 2024-07-14 20:26:16 -07:00
dpaa_ethtool.c net: dpaa: fix device leak when querying time stamp info 2025-07-30 18:02:47 -07:00
Kconfig
Makefile