[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211103014833.163615-1-heying24@huawei.com>
Date: Tue, 2 Nov 2021 21:48:33 -0400
From: He Ying <heying24@...wei.com>
To: <mpe@...erman.id.au>, <benh@...nel.crashing.org>,
<paulus@...ba.org>, <maz@...nel.org>
CC: <linuxppc-dev@...ts.ozlabs.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] powerpc/embedded6xx/hlwd-pic: Add missing of_node_put in hlwd_pic_probe
Early exits from for_each_compatible_node() should decrease the
node reference count.
Signed-off-by: He Ying <heying24@...wei.com>
---
arch/powerpc/platforms/embedded6xx/hlwd-pic.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/platforms/embedded6xx/hlwd-pic.c b/arch/powerpc/platforms/embedded6xx/hlwd-pic.c
index 15396333a90b..a4b020e4b6af 100644
--- a/arch/powerpc/platforms/embedded6xx/hlwd-pic.c
+++ b/arch/powerpc/platforms/embedded6xx/hlwd-pic.c
@@ -214,6 +214,7 @@ void hlwd_pic_probe(void)
irq_set_chained_handler(cascade_virq,
hlwd_pic_irq_cascade);
hlwd_irq_host = host;
+ of_node_put(np);
break;
}
}
--
2.17.1
Powered by blists - more mailing lists