[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190430063326.GC32393@eros.localdomain>
Date: Tue, 30 Apr 2019 16:33:26 +1000
From: "Tobin C. Harding" <me@...in.cc>
To: Viresh Kumar <viresh.kumar@...aro.org>
Cc: Rafael Wysocki <rjw@...ysocki.net>, linux-pm@...r.kernel.org,
Vincent Guittot <vincent.guittot@...aro.org>, tobin@...nel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cpufreq: Fix kobject memleak
On Tue, Apr 30, 2019 at 11:35:52AM +0530, Viresh Kumar wrote:
> Currently the error return path from kobject_init_and_add() is not
> followed by a call to kobject_put() - which means we are leaking the
> kobject.
>
> Fix it by adding a call to kobject_put() in the error path of
> kobject_init_and_add().
>
> Signed-off-by: Viresh Kumar <viresh.kumar@...aro.org>
> ---
> Tobin fixed this for schedutil already.
For what its worth:
Reviewed-by: Tobin C. Harding <tobin@...nel.org>
Thanks Viresh, one less for me to do!
Tobin
Powered by blists - more mailing lists