Re: [PATCH v3] cpupower: fix use-after-free and stale limits in frequency-set

From: Lukas Beckmann

Date: Fri Nov 20 2026 - 17:24:37 EST


On Fri, Nov 20, 2026 at 01:41:52PM -0700, Shuah Khan wrote:
> > -static int do_new_policy(unsigned int cpu, struct cpufreq_policy *new_pol)
> > +static int do_new_policy(unsigned int cpu, const struct cpufreq_policy *new_pol)
>
> Why do you need the above change?
>

It is only a cleanup as the function no longer modifies new_pol.
Removed in V4.

Thanks
Lukas