]> www.infradead.org Git - users/dwmw2/linux.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>
Sun, 21 Aug 2022 13:15:46 +0000 (15:15 +0200)
commit9aa4ad5ccabcfc906c77dbc7d0e2b2c28f1357c6
tree20b0c6639dcb48b02a8d4bdf8144162ceddfe72d
parent3ad958bc488e3ecb0207d31621c00efb86f17482
mediatek: mt76: mac80211: Fix missing of_node_put() in mt76_led_init()

[ Upstream commit 0a14c1d0113f121151edf34333cdf212dd209190 ]

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

Fixes: 17f1de56df05 ("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