commit | f637c40dd7ec664cc911a84282ab3d1ee925f6eb | [log] [tgz] |
---|---|---|
author | Ye Li <ye.li@nxp.com> | Sun Aug 02 22:43:45 2020 -0700 |
committer | Stefano Babic <sbabic@denx.de> | Sat Jan 23 11:30:31 2021 +0100 |
tree | 11795f12a25e1a37d3e1d0f0d3a35d520baebb02 | |
parent | fc11dc112d1defef0091a3ba2b5785b00e502929 [diff] |
imx: nandbcb: Fix resource leak in read_fcb Fix Coverity Issue 9006657. In read_fcb, leak of memory to system resource "fcb_raw_page". Adjust the sequence to check the mtd bad block prior than allocation of "fcb_raw_page", also check the NULL return of allocation. 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>