Bug 229953 - src/sys/arm64/rockchip/clk/rk_clk_composite.c:167]: (error) Division by zero.
Summary: src/sys/arm64/rockchip/clk/rk_clk_composite.c:167]: (error) Division by zero.
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-22 08:23 UTC by David Binderman
Modified: 2021-07-16 20:32 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2018-07-22 08:23:31 UTC
Source code is

        for (best = 0, best_div = 0, div = 0;
             div <= ((sc->div_mask >> sc->div_shift) + 1); div++) {
                cur = fparent / div;
Comment 1 Emmanuel Vadot freebsd_committer freebsd_triage 2021-07-16 20:32:05 UTC
Fixed a long time ago