]> git.baikalelectronics.ru Git - uboot.git/commit
imx: nandbcb: Fix potential overflow in nandbcb_set_boot_config
authorYe Li <ye.li@nxp.com>
Mon, 3 Aug 2020 06:07:55 +0000 (23:07 -0700)
committerStefano Babic <sbabic@denx.de>
Sat, 23 Jan 2021 10:30:31 +0000 (11:30 +0100)
commit66917b702a0e98a620142fe6fcd901f632352f48
tree797eb61840f216a152fdebd519c148f57271eee6
parent00b9bd42ea89c22bc724ba30b0774223255770cf
imx: nandbcb: Fix potential overflow in nandbcb_set_boot_config

Fix Coverity Issue 9006656. In nandbcb_set_boot_config, an integer overflow
occurs, with the result converted to a wider integer type.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/cmd_nandbcb.c