aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorBoris BREZILLON <[email protected]>2014-12-18 21:05:30 +0100
committerThierry Reding <[email protected]>2015-01-30 12:16:00 +0100
commitdf6922adec987b1c7f07870a00f899fbc9a7d4cc (patch)
tree75bad2f5ed22e5c7fb71fee2a8151ce00e5f2968 /scripts/gdb/linux/tasks.py
parentd2048c49152a414efcf8b2696896bc8803ef2f1e (diff)
pwm: atmel-hlcdc: Prevent division by zero
The slow and system clock should never return a rate of zero, but this might happen if the clocks property defined in the DT is referencing the wrong clocks. Prevent any division by zero from happening by testing the clk_freq value before calling do_div(). Signed-off-by: Boris Brezillon <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions