aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorWolfram Sang <[email protected]>2016-04-08 13:28:42 +0200
committerDavid S. Miller <[email protected]>2016-04-13 22:36:28 -0400
commita6d37131c02f15463daa00e2f1da6824e8e00de2 (patch)
tree0b3a900478aa4e19e39f38c360c465cb01442c0e /tools/perf/scripts/python/net_dropmonitor.py
parent60e19518d657018c4e25f0c20ca4f623536714b5 (diff)
net: ethernet: renesas: ravb_main: test clock rate to avoid division by 0
The clk API may return 0 on clk_get_rate, so we should check the result before using it as a divisor. Signed-off-by: Wolfram Sang <[email protected]> Acked-by: Sergei Shtylyov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions