]> git.dujemihanovic.xyz Git - u-boot.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)
commit233b0b070e2186ef01ad79188d2408e07cda08e3
tree797eb61840f216a152fdebd519c148f57271eee6
parent983f5e03919ff10118a6c63358fed29d17497f0a
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