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

Fix possible divide by zero issue in fsl_ddr_set_memctl_regs
by adding an if check

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