]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: ddr: util.c: Fix divide by zero issue
authorPriyanka Singh <priyanka.singh@nxp.com>
Thu, 19 Aug 2021 06:09:01 +0000 (11:39 +0530)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 9 Nov 2021 09:13:24 +0000 (14:43 +0530)
commita1932ece70e1441b169650d475d7814920a94c27
tree41fda2fbc95de23615c38b28255f528f78d7e12e
parentf8ed9059001d803b0eae4b49178789aa0e29edec
drivers: ddr: util.c: Fix divide by zero issue

Fix possible divide by zero issue in get_memory_clk_period_ps
by adding a check

Signed-off-by: Priyanka Singh <priyanka.singh@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/ddr/fsl/util.c