linux-xiaomi-chiron/drivers/net/ethernet/marvell/prestera
Liang He 3aac7ada64 net: marvell: Fix refcounting bugs in prestera_port_sfp_bind()
In prestera_port_sfp_bind(), there are two refcounting bugs:
(1) we should call of_node_get() before of_find_node_by_name() as
it will automaitcally decrease the refcount of 'from' argument;
(2) we should call of_node_put() for the break of the iteration
for_each_child_of_node() as it will automatically increase and
decrease the 'child'.

Fixes: 52323ef754 ("net: marvell: prestera: add phylink support")
Signed-off-by: Liang He <windhl@126.com>
Reviewed-by: Yevhen Orlov <yevhen.orlov@plvision.eu>
Link: https://lore.kernel.org/r/20220921133245.4111672-1-windhl@126.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-09-22 07:23:58 -07:00
..
Kconfig net: marvell: prestera: add phylink support 2022-07-20 10:24:40 +01:00
Makefile net: marvell: prestera: add hardware router objects accounting 2021-12-30 13:12:09 +00:00
prestera.h net: marvell: prestera: add phylink support 2022-07-20 10:24:40 +01:00
prestera_acl.c net: prestera: acl: add support for 'egress' rules 2022-06-29 14:02:37 +01:00
prestera_acl.h net: prestera: acl: add support for 'egress' rules 2022-06-29 14:02:37 +01:00
prestera_counter.c net: prestera: add counter HW API 2021-11-30 12:26:01 +00:00
prestera_counter.h net: prestera: add counter HW API 2021-11-30 12:26:01 +00:00
prestera_devlink.c net/prestera: Split devlink and traps registrations to separate routines 2021-09-27 16:31:59 +01:00
prestera_devlink.h net/prestera: Split devlink and traps registrations to separate routines 2021-09-27 16:31:59 +01:00
prestera_dsa.c net: marvell: prestera: devlink: add traps/groups implementation 2021-06-14 13:04:25 -07:00
prestera_dsa.h net: marvell: prestera: devlink: add traps/groups implementation 2021-06-14 13:04:25 -07:00
prestera_ethtool.c net: marvell: prestera: add phylink support 2022-07-20 10:24:40 +01:00
prestera_ethtool.h net: marvell: prestera: add phylink support 2022-07-20 10:24:40 +01:00
prestera_flow.c net: prestera: acl: add support for 'egress' rules 2022-06-29 14:02:37 +01:00
prestera_flow.h net: prestera: acl: add support for 'egress' rules 2022-06-29 14:02:37 +01:00
prestera_flower.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-07-21 13:03:39 -07:00
prestera_flower.h net: prestera: acl: add multi-chain support offload 2022-02-14 14:11:43 +00:00
prestera_hw.c net: marvell: prestera: define MDB/flood domain entries and HW API to offload them to the HW 2022-07-13 12:14:05 +01:00
prestera_hw.h net: marvell: prestera: define MDB/flood domain entries and HW API to offload them to the HW 2022-07-13 12:14:05 +01:00
prestera_main.c net: marvell: Fix refcounting bugs in prestera_port_sfp_bind() 2022-09-22 07:23:58 -07:00
prestera_pci.c net: marvell: prestera: add support for for Aldrin2 2022-09-16 11:53:48 +01:00
prestera_router.c net: marvell: prestera: use netif_is_any_bridge_port instead of open code 2022-07-22 12:35:45 +01:00
prestera_router_hw.c net: marvell: prestera: Fix return value check in prestera_fib_node_find() 2022-02-24 21:21:20 -08:00
prestera_router_hw.h net: marvell: prestera: add hardware router objects accounting for lpm 2022-02-17 20:45:01 +00:00
prestera_rxtx.c net: marvell: prestera: fix typo in comment 2022-05-22 20:44:29 +01:00
prestera_rxtx.h
prestera_span.c net: prestera: acl: migrate to new vTCAM api 2021-11-30 12:26:01 +00:00
prestera_span.h net: marvell: prestera: Add matchall support 2021-06-16 12:58:27 -07:00
prestera_switchdev.c net: marvell: prestera: implement software MDB entries allocation 2022-07-13 12:14:05 +01:00
prestera_switchdev.h net: bridge: switchdev: let drivers inform which bridge ports are offloaded 2021-07-22 00:26:23 -07:00