Re: [PATCH v5 1/5] arch_topology: validate input frequencies to arch_set_freq_scale()
From: Sudeep Holla <hidden>
Date: 2020-09-02 15:47:03
Also in:
linux-pm, lkml
From: Sudeep Holla <hidden>
Date: 2020-09-02 15:47:03
Also in:
linux-pm, lkml
On Tue, Sep 01, 2020 at 09:55:45PM +0100, Ionela Voinescu wrote:
The current frequency passed to arch_set_freq_scale() could end up being 0, signaling an error in setting a new frequency. Also, if the maximum frequency in 0, this will result in a division by 0 error. Therefore, validate these input values before using them for the setting of the frequency scale factor. Signed-off-by: Ionela Voinescu <redacted> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Cc: Sudeep Holla <redacted>
Reviewed-by: Sudeep Holla <redacted> -- Regards, Sudeep _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel