linux/drivers/iio/trigger
Gustavo A. R. Silva c10f8109f7 iio: hrtimer-trigger: Fix potential integer overflow in iio_hrtimer_store_sampling_frequency
Add suffix ULL to constant 1000 in order to avoid a potential integer
overflow and give the compiler complete information about the proper
arithmetic to use. Notice that this constant is being used in a context
that expects an expression of type unsigned long long, but it's
currently evaluated using 32-bit arithmetic.

Addresses-Coverity-ID: 1503062 ("Unintentional integer overflow")
Fixes: dafcf4ed83 ("iio: hrtimer: Allow sub Hz granularity")
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20210329205817.GA188755@embeddedor
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-04-07 08:36:39 +01:00
..
iio-trig-hrtimer.c iio: hrtimer-trigger: Fix potential integer overflow in iio_hrtimer_store_sampling_frequency 2021-04-07 08:36:39 +01:00
iio-trig-interrupt.c iio: set default trig->dev.parent 2021-03-25 19:13:50 +00:00
iio-trig-loop.c iio: set default trig->dev.parent 2021-03-25 19:13:50 +00:00
iio-trig-sysfs.c iio: set default trig->dev.parent 2021-03-25 19:13:50 +00:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stm32-lptimer-trigger.c iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-timer-trigger.c iio: Remove superfluous of_node assignments 2020-06-14 14:20:08 +01:00