mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
wifi: mt76: mt7915: add missing of_node_put()
[ Upstream commit18425d7d74] Add missing of_node_put() after of_reserved_mem_lookup() Fixes:99ad32a4ca("mt76: mt7915: add support for MT7986") Signed-off-by: Wang Yufen <wangyufen@huawei.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fba23dfd6f
commit
4469ddf7d5
@@ -278,6 +278,7 @@ static int mt7986_wmac_coninfra_setup(struct mt7915_dev *dev)
|
||||
return -EINVAL;
|
||||
|
||||
rmem = of_reserved_mem_lookup(np);
|
||||
of_node_put(np);
|
||||
if (!rmem)
|
||||
return -EINVAL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user