imx: nandbcb: Fix resource leak
authorYe Li <ye.li@nxp.com>
Mon, 3 Aug 2020 04:11:06 +0000 (21:11 -0700)
committerStefano Babic <sbabic@denx.de>
Sat, 23 Jan 2021 10:30:31 +0000 (11:30 +0100)
commitfc11dc112d1defef0091a3ba2b5785b00e502929
tree9b4dae96eb26710937d1b8bc79b93ff5689258d6
parent9dd599a7a49f5730e2056f71fddff9fcf597488f
imx: nandbcb: Fix resource leak

Fix Coverity Issue 9006655. In write_fcb, leak of memory to resource
"fcb_raw_page". Since we have initialized the "ret" to 0, should return
the value of ret.

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