]> git.baikalelectronics.ru Git - kernel.git/commit
mediatek: mt76: mac80211: Fix missing of_node_put() in mt76_led_init()
authorLiang He <windhl@126.com>
Mon, 4 Jul 2022 08:34:20 +0000 (16:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:29 +0000 (14:23 +0200)
commit2133dba6910a8444b6d76ade160dd00781fa1911
treef7c5d8888679a0f07d7ecddb31ebb6f127aeb91e
parent8ed49b9a602d30c31685c134515cbbb31ca68f11
mediatek: mt76: mac80211: Fix missing of_node_put() in mt76_led_init()

[ Upstream commit b9d0cc5621982f0ff8ed23437aed1bafab0f7c34 ]

We should use of_node_put() for the reference 'np' returned by
of_get_child_by_name() which will increase the refcount.

Fixes: df608142a94e ("mt76: add common code shared between multiple chipsets")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mac80211.c