Skip to content

Commit

Permalink
wifi: mt76: mt7915: add missing of_node_put()
Browse files Browse the repository at this point in the history
Add missing of_node_put() after of_reserved_mem_lookup()

Fixes: 99ad32a ("mt76: mt7915: add support for MT7986")
Signed-off-by: Wang Yufen <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
wangyufen316 authored and nbd168 committed Dec 9, 2022
1 parent 832c3f6 commit 18425d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/mediatek/mt76/mt7915/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 18425d7

Please sign in to comment.