[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20220609124257.133067-1-miquel.raynal@bootlin.com>
Date: Thu, 9 Jun 2022 14:42:57 +0200
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Miaoqian Lin <linmq006@...il.com>,
Linus Walleij <linus.walleij@...aro.org>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
linux-arm-kernel@...ts.infradead.org,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mtd: maps: Fix refcount leak in ap_flash_init
On Mon, 2022-05-23 at 14:32:55 UTC, Miaoqian Lin wrote:
> of_find_matching_node() returns a node pointer with refcount
> incremented, we should use of_node_put() on it when not need anymore.
> Add missing of_node_put() to avoid refcount leak.
>
> Fixes: b0afd44bc192 ("mtd: physmap_of: add a hook for Versatile write protection")
> Signed-off-by: Miaoqian Lin <linmq006@...il.com>
> Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
Powered by blists - more mailing lists