]> git.baikalelectronics.ru Git - kernel.git/commit
net/dsa/hirschmann: Add missing of_node_get() in hellcreek_led_setup()
authorLiang He <windhl@126.com>
Wed, 22 Jun 2022 04:06:21 +0000 (12:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jul 2022 15:53:27 +0000 (17:53 +0200)
commit53b5fe69b5f77dd69dd3b4f39b8c3a8ef0709727
treee99f3b77ed584a22fd24741ac710ba4f8c12ebec
parent9a189bb78c6f29183e296671b4a88e4f40d6a125
net/dsa/hirschmann: Add missing of_node_get() in hellcreek_led_setup()

commit 67922364da446dc7d1ad12aeb7a6b4589404b109 upstream.

of_find_node_by_name() will decrease the refcount of its first arg and
we need a of_node_get() to keep refcount balance.

Fixes: 3fa6a7a87dd7 ("net: dsa: hellcreek: Add PTP status LEDs")
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220622040621.4094304-1-windhl@126.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/hirschmann/hellcreek_ptp.c