Re: [PATCH] powercap: DTPM: Fix the missing cpufreq_cpu_put() calls

From: Greg KH
Date: Fri Dec 01 2023 - 07:44:13 EST


On Fri, Dec 01, 2023 at 12:32:05PM +0000, Lukasz Luba wrote:
> The policy returned by cpufreq_cpu_get() has to be released with
> the help of cpufreq_cpu_put() to balance its kobject reference counter
> properly.
>
> Add the missing calls to cpufreq_cpu_put() in the code.
>
> Fixes: 0aea2e4ec2a2 ("powercap/dtpm_cpu: Reset per_cpu variable in the release function")
> Fixes: 0e8f68d7f048 ("powercap/drivers/dtpm: Add CPU energy model based support")
> Cc: <stable@xxxxxxxxxxxxxxx> # v5.10+

But the Fixes: tags are for commits that are only in 5.12 and newer, how
can this be relevant for 5.10?

thanks,

greg k-h