aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2020-04-29 16:23:23 +0300
committerWolfram Sang <[email protected]>2020-04-30 16:07:14 +0200
commit08736e83079929bdbff8ba91c6bdb3d3e57e0abd (patch)
tree921ea499bf24bf3f535b7718e75aa53c78bbd8f1 /tools/perf/scripts/python
parent84c0eb212c88176142a0aaf1f896d9bddd8bcb7a (diff)
i2c: stm32f7: prevent array underflow in stm32f7_get_lower_rate()
We want to break with "i" set to zero whether we find the rate we want or not. In the current code, if we don't find the rate we want then it exits the loop with "i" set to -1 and results in an array underflow. Fixes: 09cc9a3bce91 ("i2c: stm32f7: allows for any bus frequency") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Alain Volmat <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions