aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorBryan O'Donoghue <[email protected]>2017-07-28 13:22:57 +0000
committerBoris Brezillon <[email protected]>2017-08-02 08:26:40 +0000
commit791eccd94965a8029ae09c5530bcb9a76794e408 (patch)
tree0e2d8503a9d657df9a5fed39946d07dde81e1556 /drivers/iio/trigger/stm32-timer-trigger.c
parentnand: fix wrong default oob layout for small pages using soft ecc (diff)
downloadkernel-791eccd94965a8029ae09c5530bcb9a76794e408.tar.gz
kernel-791eccd94965a8029ae09c5530bcb9a76794e408.zip
mtd: nand: sunxi: fix potential divide-by-zero error
clk_round_rate() can return <= 0. Currently the value returned by clk_round_rate() is used directly for a division. This patch introduces a guard to ensure a divide-by-zero or a divide by a negative number for that matter can't happen by bugging out returning -EINVAL if clk_round_rate() returns <= 0. Fixes: 2d43457f79e4 ("mtd: nand: sunxi: fix EDO mode selection") Signed-off-by: Bryan O'Donoghue <[email protected]> Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions