diff options
author | Stephen Warren <swarren@nvidia.com> | 2016-01-06 10:33:03 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-20 19:06:23 -0700 |
commit | 0a7edce0ef26d9a8c11e9c097e0ed12cf334e27d (patch) | |
tree | 12aa4e174c947f098a7c508b5137d2cfb1904018 /drivers/timer/sandbox_timer.c | |
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>
Diffstat (limited to 'drivers/timer/sandbox_timer.c')
0 files changed, 0 insertions, 0 deletions