linux-imx/drivers/net/dsa/qca
Andy Shevchenko c72660999c net dsa: qca8k: fix usages of device_get_named_child_node()
[ Upstream commit d029edefed ]

The documentation for device_get_named_child_node() mentions this
important point:

"
The caller is responsible for calling fwnode_handle_put() on the
returned fwnode pointer.
"

Add fwnode_handle_put() to avoid leaked references.

Fixes: 1e264f9d29 ("net: dsa: qca8k: add LEDs basic support")
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-21 14:38:33 +02:00
..
ar9331.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-07-20 15:52:55 -07:00
Kconfig
Makefile
qca8k_leds.h
qca8k-8xxx.c net: dsa: qca8k: fix illegal usage of GPIO 2024-02-05 20:14:36 +00:00
qca8k-common.c net: dsa: qca8k: make learning configurable and keep off if standalone 2023-08-01 12:02:42 +02:00
qca8k-leds.c net dsa: qca8k: fix usages of device_get_named_child_node() 2024-06-21 14:38:33 +02:00
qca8k.h net: dsa: qca8k: make learning configurable and keep off if standalone 2023-08-01 12:02:42 +02:00