]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: imx: pllv3: fix potential 'divide by zero' in av_set_rate()
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Fri, 17 Jan 2020 12:06:42 +0000 (13:06 +0100)
committerLukasz Majewski <lukma@denx.de>
Sun, 26 Jan 2020 20:57:08 +0000 (21:57 +0100)
commit041b06a7c32f596f00dd495444a1b02568a9d492
tree75dce64d25c13114ebb3cdbb26e7025aa4ef04fe
parentd37ecaba88cc7482d9481a6ee7de84ff454ede4a
clk: imx: pllv3: fix potential 'divide by zero' in av_set_rate()

Guard 'parent_rate==0' to prevent 'divide by zero' issue in
clk_pplv3_av_set_rate(). If it is 0, let's return with -EINVAL.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
drivers/clk/imx/clk-pllv3.c