Commit 18425d7d authored by Wang Yufen's avatar Wang Yufen Committed by Felix Fietkau
Browse files

wifi: mt76: mt7915: add missing of_node_put()



Add missing of_node_put() after of_reserved_mem_lookup()

Fixes: 99ad32a4 ("mt76: mt7915: add support for MT7986")
Signed-off-by: default avatarWang Yufen <wangyufen@huawei.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 832c3f66
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;