linux/drivers/net/ethernet/freescale
Wentao Liang a644f09b20 fsl/fman: Fix clk reference leak in read_dts_node()
of_clk_get() returns a clock with its reference count incremented, but
read_dts_node() only uses it to read the rate and never calls clk_put().
The clock is not stored anywhere, so the reference cannot be released
later either.

Release the clock once its rate has been read, which also covers the
error path taken when the rate is zero.

Fixes: 414fd46e77 ("fsl/fman: Add FMan support")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260917110135.2148068-1-vulab@iscas.ac.cn
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-09-22 12:31:26 +02:00
..
dpaa Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
dpaa2 treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
enetc net: enetc: restore RX ring congestion mode for ENETC v4 2026-08-24 11:56:38 -07:00
fman fsl/fman: Fix clk reference leak in read_dts_node() 2026-09-22 12:31:26 +02:00
fs_enet Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-02-26 10:23:00 -08:00
fec_main.c net: fec: only stop PTP if it was initialized 2026-08-27 12:41:14 -07:00
fec_mpc52xx_phy.c net: fec_mpc52xx_phy: Add missing MODULE_DESCRIPTION() 2026-06-01 19:25:24 -07:00
fec_mpc52xx.c net: fec_mpc52xx: add missing kernel-doc for @may_sleep 2026-06-02 14:25:41 -07:00
fec_mpc52xx.h
fec_ptp.c net: fec: fix the PTP periodic output sysfs interface 2026-03-26 20:10:15 -07:00
fec.h net: fec: add AF_XDP zero-copy support 2026-02-10 10:58:20 +01:00
fsl_pq_mdio.c net: fsl_pq_mdio: Fix device node reference leak in fsl_pq_mdio_probe 2025-10-06 11:22:40 -07:00
gianfar_ethtool.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
gianfar.c net: ethernet: remove conditional return with no effect 2026-07-30 13:04:03 +02:00
gianfar.h
Kconfig net: fec: make FIXED_PHY dependency unconditional 2026-04-03 14:39:37 -07:00
Makefile dpaa2: compile dpaa2 even CONFIG_FSL_DPAA2_ETH=n 2026-03-14 13:33:03 -07:00
ucc_geth_ethtool.c net: freescale: ucc_geth: phylink conversion 2024-12-06 13:41:53 +00:00
ucc_geth.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-02-26 10:23:00 -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 net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00