commit | 023ddfedeb72d3b717cbcf4a87372e581a93ebdf | [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 | 0a30e42078f2cd12b59fd3886899afdefb655fc2 [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>