[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e91019a0ed5f61634fbefca855da1f33.sboyd@kernel.org>
Date: Tue, 20 Jun 2023 12:03:10 -0700
From: Stephen Boyd <sboyd@...nel.org>
To: Fei Shao <fshao@...omium.org>
Cc: Fei Shao <fshao@...omium.org>,
Jerome Brunet <jbrunet@...libre.com>,
Michael Turquette <mturquette@...libre.com>,
linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] clk: Fix memory leak in devm_clk_notifier_register()
Quoting Fei Shao (2023-06-18 20:22:53)
> devm_clk_notifier_register() allocates a devres resource for clk
> notifier but didn't register that to the device, so the notifier didn't
> get unregistered on device detach and the allocated resource was leaked.
>
> Fix the issue by registering the resource through devres_add().
>
> Fixes: 6d30d50d037d ("clk: add devm variant of clk_notifier_register")
> Signed-off-by: Fei Shao <fshao@...omium.org>
> ---
Applied to clk-next
It would be nice to also add a test or two for this.
Powered by blists - more mailing lists