RE: [PATCH v2 1/2] clk:Fix divide-by-zero in divider_ro_round_rate_parent
From: Nixiaoming
Date: Sat Mar 30 2019 - 09:42:40 EST
On 3/30/2019 5:44 PM, Mukesh Ojha wrote:
>On 3/30/2019 8:01 AM, nixiaoming wrote:
>> In the function divider_recalc_rate() The judgment of the return value of
>> _get_div() indicates that the return value of _get_div() may be 0.
>
>s/may be/can be
Thank you for your comments.
I will fix it in a later patch.
>
>> In order to avoid the divide-by-zero error, add check the return values.
>s/add check the/add check for
>
Thank you for your comments.
I will fix it in a later patch.
>> of _get_div() in the divider_ro_round_rate_parent()
>>
>> Signed-off-by: nixiaoming <nixiaoming@xxxxxxxxxx>
>
>
>Please fix the commit text.
>Reviewed-by: Mukesh Ojha <mojha@xxxxxxxxxxxxxx>
>
>Cheers,
>-Mukesh
>
Thanks