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 <[email protected]>
> Acked-by: Viresh Kumar <[email protected]>
> Cc: Sudeep Holla <[email protected]>

Reviewed-by: Sudeep Holla <[email protected]>

--
Regards,
Sudeep

Reply via email to