summaryrefslogtreecommitdiff
path: root/drivers/clk/mtmips
diff options
context:
space:
mode:
authorGiulio Benetti <giulio.benetti@benettiengineering.com>2020-01-17 13:06:40 +0100
committerLukasz Majewski <lukma@denx.de>2020-01-26 21:57:08 +0100
commit3391e7772933da74b488c761a2e444b9899cbd2a (patch)
tree32734249dcfd101ab95c1f6d35248fb686bcc7f5 /drivers/clk/mtmips
parent90cbfa50c2b85d60f41d5e9852141058e5bad3ac (diff)
clk: imx: pllv3: fix potential 'divide by zero' in sys_get_rate()
Guard 'parent_rate==0' to prevent 'divide by zero' issue in clk_pplv3_sys_get_rate(). If it is 0, let's return with -EINVAL. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Diffstat (limited to 'drivers/clk/mtmips')
0 files changed, 0 insertions, 0 deletions