[PATCH 3/8] cpufreq: powerenv: Fix memory leak
Viresh Kumar
viresh.kumar at linaro.org
Thu Jun 2 21:22:03 AEST 2016
On 02-06-16, 21:08, Michael Ellerman wrote:
> On Wed, 2016-06-01 at 16:04 +0530, Viresh Kumar wrote:
>
> > The policy is copied (unnecessarily) and is never freed. Fix it by just
> > getting a reference to the existing policy structure and putting it
> > back.
> >
> > Signed-off-by: Viresh Kumar <viresh.kumar at linaro.org>
>
> When was it broken, always?
>
> Cc: stable ?
Its a small memory leak and its not that we will fail on something. So
didn't bother to add those details, but in case they are required:
Cc: <stable at vger.kernel.org> # 4.3+
Fixes: 227942809b52 ("cpufreq: powernv: Restore cpu frequency to policy->cur on unthrottling")
--
viresh
More information about the Linuxppc-dev
mailing list