diff options
author | Ye Li <ye.li@nxp.com> | 2020-08-02 22:43:45 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2021-01-23 11:30:31 +0100 |
commit | f637c40dd7ec664cc911a84282ab3d1ee925f6eb (patch) | |
tree | 11795f12a25e1a37d3e1d0f0d3a35d520baebb02 /drivers/ddr/imx | |
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>
Diffstat (limited to 'drivers/ddr/imx')
0 files changed, 0 insertions, 0 deletions