]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mediatek: mt76: eeprom: fix missing of_node_put() in mt76_find_power_limits_node()
authorLiang He <windhl@126.com>
Mon, 4 Jul 2022 08:34:21 +0000 (16:34 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 17 Oct 2022 09:56:23 +0000 (11:56 +0200)
commit1b954484a77ff21b155069080726cbf5fb7e3626
tree4628773352badf31f01e05cc1aebab31b1f06420
parent4f619abc6da9ee75965071090fe0e9085d8e527e
mediatek: mt76: eeprom: fix missing of_node_put() in mt76_find_power_limits_node()

BugLink: https://bugs.launchpad.net/bugs/1990162
[ Upstream commit 3bd53ea02d77917c2314ec7be9e2d05be22f87d3 ]

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

Fixes: 22b980badc0f ("mt76: add functions for parsing rate power limits from DT")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/wireless/mediatek/mt76/eeprom.c