2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/net/dsa/microchip
Liang He a14bd74754 net: dsa: microchip: ksz_common: Fix refcount leak bug
In ksz_switch_register(), we should call of_node_put() for the
reference returned by of_get_child_by_name() which has increased
the refcount.

Fixes: 912aae27c6 ("net: dsa: microchip: really look for phy-mode in port nodes")
Signed-off-by: Liang He <windhl@126.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20220714153138.375919-1-windhl@126.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-07-15 16:44:53 -07:00
..
Kconfig net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support 2021-04-27 14:13:24 -07:00
ksz8.h net: dsa: microchip: ksz8795: handle eee specif erratum 2022-03-17 17:19:16 -07:00
ksz8795_reg.h net: dsa: ksz: added the generic port_stp_state_set function 2022-04-26 10:19:34 +02:00
ksz8795_spi.c net: dsa: microchip: perform the compatibility check for dev probed 2022-05-18 12:50:59 +01:00
ksz8795.c net: dsa: microchip: remove unused members in ksz_device 2022-05-18 12:51:00 +01:00
ksz8863_smi.c net: dsa: microchip: perform the compatibility check for dev probed 2022-05-18 12:50:59 +01:00
ksz9477_i2c.c net: dsa: microchip: perform the compatibility check for dev probed 2022-05-18 12:50:59 +01:00
ksz9477_reg.h net: dsa: ksz: added the generic port_stp_state_set function 2022-04-26 10:19:34 +02:00
ksz9477_spi.c net: dsa: microchip: perform the compatibility check for dev probed 2022-05-18 12:50:59 +01:00
ksz9477.c net: dsa: microchip: add the phylink get_caps 2022-05-18 12:50:59 +01:00
ksz_common.c net: dsa: microchip: ksz_common: Fix refcount leak bug 2022-07-15 16:44:53 -07:00
ksz_common.h net: dsa: microchip: remove unused members in ksz_device 2022-05-18 12:51:00 +01:00
Makefile net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support 2021-04-27 14:13:24 -07:00