[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1669367167-12983-1-git-send-email-wangyufen@huawei.com>
Date: Fri, 25 Nov 2022 17:06:07 +0800
From: Wang Yufen <wangyufen@...wei.com>
To: <nbd@....name>, <lorenzo@...nel.org>, <ryder.lee@...iatek.com>,
<shayne.chen@...iatek.com>, <sean.wang@...iatek.com>,
<kvalo@...nel.org>, <davem@...emloft.net>
CC: <chui-hao.chiu@...iatek.com>, <wangyufen@...wei.com>,
<linux-wireless@...r.kernel.org>, <netdev@...r.kernel.org>
Subject: [PATCH wireless] mt76: mt7915: add missing of_node_put()
Add missing of_node_put() after of_reserved_mem_lookup()
Fixes: 99ad32a4ca3a ("mt76: mt7915: add support for MT7986")
Signed-off-by: Wang Yufen <wangyufen@...wei.com>
---
drivers/net/wireless/mediatek/mt76/mt7915/soc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/soc.c b/drivers/net/wireless/mediatek/mt76/mt7915/soc.c
index c74afa7..ee7ddda 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/soc.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/soc.c
@@ -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;
--
1.8.3.1
Powered by blists - more mailing lists