[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aXh7yfEmOJ0zsLb0@smile.fi.intel.com>
Date: Tue, 27 Jan 2026 10:48:09 +0200
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: Felix Gu <ustc.gu@...il.com>
Cc: Linus Walleij <linusw@...nel.org>,
Rahul Tanwar <rahul.tanwar@...ux.intel.com>,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] pinctrl: equilibrium: Fix device node reference leak in
pinbank_init()
On Tue, Jan 27, 2026 at 01:30:07AM +0800, Felix Gu wrote:
> When calling of_parse_phandle_with_fixed_args(), the caller is
> responsible to call of_node_put() to release the reference of device
> node.
>
> In pinbank_init(), the reference of the node obtained from the
> "gpio-ranges" property is never released, resulting in a reference
> count leak.
>
> Add the missing of_node_put() call to fix the leak.
Acked-by: Andy Shevchenko <andriy.shevchenko@...el.com>
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists