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)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Jul 2022 11:40:03 +0000 (13:40 +0200)
commit0a14c1d0113f121151edf34333cdf212dd209190
tree21832dd950a551a483a07a7eae6bc310b89b2e4b
parent8950a62f19c9fe009a451aeea08ab740354549be
mediatek: mt76: mac80211: Fix missing of_node_put() in mt76_led_init()

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>
drivers/net/wireless/mediatek/mt76/mac80211.c