[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200107063148.lr2s65igfncbkpxx@vireshk-i7>
Date: Tue, 7 Jan 2020 12:01:48 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Michał Mirosław <mirq-linux@...e.qmqm.pl>
Cc: Viresh Kumar <vireshk@...nel.org>, Nishanth Menon <nm@...com>,
Stephen Boyd <sboyd@...nel.org>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] opp: fix of_node leak for unsupported entries
On 03-01-20, 20:36, Michał Mirosław wrote:
> When parsing OPP v2 table, unsupported entries return NULL from
> _opp_add_static_v2().
Please fix that and return something sensible from there.
> In this case node reference is leaked.
> Make _opp_add_static_v2() always assume ownership of the reference
> to fix this.
The ownership lies with the routine which took the reference in the first place.
--
viresh
Powered by blists - more mailing lists