summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-fixed-factor.c
diff options
context:
space:
mode:
authorGiulio Benetti <giulio.benetti@benettiengineering.com>2020-01-17 13:06:41 +0100
committerLukasz Majewski <lukma@denx.de>2020-01-26 21:57:08 +0100
commitd37ecaba88cc7482d9481a6ee7de84ff454ede4a (patch)
treeb507dcfa7009378c80e033acc2cb8b225c885ebc /drivers/clk/clk-fixed-factor.c
parent3391e7772933da74b488c761a2e444b9899cbd2a (diff)
clk: imx: pllv3: fix potential 'divide by zero' in av_get_rate()
Guard 'mfd==0' to prevent 'divide by zero' issue in clk_pplv3_av_get_rate(). If it is 0, let's return with EIO since mfd should never be 0 at all. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Diffstat (limited to 'drivers/clk/clk-fixed-factor.c')
0 files changed, 0 insertions, 0 deletions