[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1623929522-4389-1-git-send-email-zou_wei@huawei.com>
Date: Thu, 17 Jun 2021 19:32:02 +0800
From: Zou Wei <zou_wei@...wei.com>
To: <stanley.chu@...iatek.com>, <alim.akhtar@...sung.com>,
<avri.altman@....com>, <jejb@...ux.ibm.com>,
<martin.petersen@...cle.com>, <matthias.bgg@...il.com>
CC: <linux-scsi@...r.kernel.org>, <linux-mediatek@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
"Zou Wei" <zou_wei@...wei.com>
Subject: [PATCH -next] scsi: ufs-mediatek: Add missing of_node_put() in ufs_mtk_probe()
The function is missing a of_node_put on node, fix this by adding the call
before returning.
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Zou Wei <zou_wei@...wei.com>
---
drivers/scsi/ufs/ufs-mediatek.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c
index 1a517c9..d2c2516 100644
--- a/drivers/scsi/ufs/ufs-mediatek.c
+++ b/drivers/scsi/ufs/ufs-mediatek.c
@@ -1120,6 +1120,7 @@ static int ufs_mtk_probe(struct platform_device *pdev)
if (err)
dev_info(dev, "probe failed %d\n", err);
+ of_node_put(reset_node);
return err;
}
--
2.6.2
Powered by blists - more mailing lists