commit | 0a7edce0ef26d9a8c11e9c097e0ed12cf334e27d | [log] [tgz] |
---|---|---|
author | Stephen Warren <swarren@nvidia.com> | Wed Jan 06 10:33:03 2016 -0700 |
committer | Simon Glass <sjg@chromium.org> | Wed Jan 20 19:06:23 2016 -0700 |
tree | 12aa4e174c947f098a7c508b5137d2cfb1904018 | |
parent | cf2045283284a3226889b66541c456eb7ca869e9 [diff] |
dm: timer: refuse timers with zero clock_rate If a timer has a zero clock_rate, get_tbclk() will return zero for it, which will cause tick_to_time() to perform a division-by-zero, which will crash U-Boot. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>