]> 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)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Jun 2022 03:39:22 +0000 (20:39 -0700)
commitdd27bc6e48a6680315e50070503de11d6ac73110
treeef04571894e9d1cd6aba0c83d25cff50d178e71a
parented179f2e96863ac30acc5e367af4c88e533174c5
net/dsa/hirschmann: Add missing of_node_get() in hellcreek_led_setup()

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: ae00d6af7864 ("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>
drivers/net/dsa/hirschmann/hellcreek_ptp.c