]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(imx8m): fix coverity out of bound access issue
authorJacky Bai <ping.bai@nxp.com>
Tue, 8 Sep 2020 01:55:59 +0000 (09:55 +0800)
committerJacky Bai <ping.bai@nxp.com>
Tue, 28 Feb 2023 06:27:24 +0000 (14:27 +0800)
commit0331b1c6111d198195298a2885dbd93cac1ad26a
tree6c8d42ae7dbecdc00bc3472063dbd21426d73740
parent4bf5019228cf89e0cbc2cd03627f755d51e3e198
fix(imx8m): fix coverity out of bound access issue

Fix the out of bound access to the rank setting array.

Fix Coverity issue:

CID 6474575: Out-of-bounds access (OVERRUN)
CID 11014855: Unused value (UNUSED_VALUE)

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Change-Id: I5d9ef90f1479e5d46d1b6c8693a27e3abd614766
plat/imx/imx8m/ddr/dram.c
plat/imx/imx8m/ddr/dram_retention.c
plat/imx/imx8m/include/dram.h