mediatek: mt76: mac80211: Fix missing of_node_put() in mt76_led_init()
stable inclusion from stable-v5.10.137 commit 9aa4ad5ccabcfc906c77dbc7d0e2b2c28f1357c6 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9aa4ad5ccabcfc906c77dbc7d0e2b2c28f1357c6 -------------------------------- [ Upstream commit 0a14c1d0 ] We should use of_node_put() for the reference 'np' returned by of_get_child_by_name() which will increase the refcount. Fixes: 17f1de56 ("mt76: add common code shared between multiple chipsets") Signed-off-by: NLiang He <windhl@126.com> Signed-off-by: NFelix Fietkau <nbd@nbd.name> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录