commit | c61dedbc16c9cb39e59c67abd5e13ca9b52aaa65 | [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 | 9bd56a602f6d5955d70a4b289773c37e16b373b6 [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>