Patch "soc/tegra: fuse: Add missing of_node_put() in tegra_init_fuse()" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    soc/tegra: fuse: Add missing of_node_put() in tegra_init_fuse()

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     soc-tegra-fuse-add-missing-of_node_put-in-tegra_init.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ea2d1487d35de1bfd699724457f26e2d1aaf349e
Author: Liang He <windhl@xxxxxxx>
Date:   Thu Jun 16 09:46:36 2022 +0800

    soc/tegra: fuse: Add missing of_node_put() in tegra_init_fuse()
    
    [ Upstream commit e941712cccab8a96f03b5d3274159c1ed338efee ]
    
    In this function, of_find_matching_node() will return a node pointer
    with refcount incremented. We should use of_node_put() when the "np"
    pointer is not used anymore.
    
    Signed-off-by: Liang He <windhl@xxxxxxx>
    Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
    Stable-dep-of: 2254182807fc ("soc/tegra: fuse: Drop Kconfig dependency on TEGRA20_APB_DMA")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c
index b0a8405dbdb1..6542267a224d 100644
--- a/drivers/soc/tegra/fuse/fuse-tegra.c
+++ b/drivers/soc/tegra/fuse/fuse-tegra.c
@@ -568,6 +568,7 @@ static int __init tegra_init_fuse(void)
 	np = of_find_matching_node(NULL, car_match);
 	if (np) {
 		void __iomem *base = of_iomap(np, 0);
+		of_node_put(np);
 		if (base) {
 			tegra_enable_fuse_clk(base);
 			iounmap(base);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux