aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-02-22 09:15:37 +0300
committerJonathan Cameron <[email protected]>2024-02-28 19:26:36 +0000
commitdf621530462c681641425cfb416e411ff04b474a (patch)
tree6053ce0620e65a9285f1776904f5db716cd97d2c /tools/perf/scripts/python/flamegraph.py
parentdebabbb1f272f6c21b468838a0cbafc5d2c90e8b (diff)
iio: adc: ti-ads1298: prevent divide by zero in ads1298_set_samp_freq()
The "val" variable comes from the user so we need to ensure that it's not zero. In fact, all negative values are invalid as well. Add a check for that. Fixes: 00ef7708fa60 ("iio: adc: ti-ads1298: Add driver") Acked-by: Mike Looijmans <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions