linux-yocto/drivers/net/ethernet/freescale/fman
Aleksandr Mishin 1dec67e0d9 fsl/fman: Fix refcount handling of fman-related devices
In mac_probe() there are multiple calls to of_find_device_by_node(),
fman_bind() and fman_port_bind() which takes references to of_dev->dev.
Not all references taken by these calls are released later on error path
in mac_probe() and in mac_remove() which lead to reference leaks.

Add references release.

Fixes: 3933961682 ("fsl/fman: Add FMan MAC driver")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-10-21 10:50:16 +02:00
..
fman_dtsec.c net: phylink: pass neg_mode into phylink_mii_c22_pcs_config() 2023-06-22 19:41:01 -07:00
fman_dtsec.h
fman_keygen.c
fman_keygen.h
fman_mac.h
fman_memac.c net: fman_memac: remove the now unnecessary checking for fixed-link 2024-05-30 18:32:16 -07:00
fman_memac.h
fman_muram.c net: fman: Remove some unused fields in some structure 2024-04-03 19:30:28 -07:00
fman_muram.h
fman_port.c net: Use of_property_read_bool() 2024-08-01 18:15:18 -07:00
fman_port.h
fman_sp.c
fman_sp.h
fman_tgec.c
fman_tgec.h
fman.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
fman.h
Kconfig
mac.c fsl/fman: Fix refcount handling of fman-related devices 2024-10-21 10:50:16 +02:00
mac.h fsl/fman: Save device references taken in mac_probe() 2024-10-21 10:50:16 +02:00
Makefile