summaryrefslogtreecommitdiff
path: root/drivers/ddr/imx/imx8m
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-08-02 22:43:45 -0700
committerStefano Babic <sbabic@denx.de>2021-01-23 11:30:31 +0100
commitf637c40dd7ec664cc911a84282ab3d1ee925f6eb (patch)
tree11795f12a25e1a37d3e1d0f0d3a35d520baebb02 /drivers/ddr/imx/imx8m
parentfc11dc112d1defef0091a3ba2b5785b00e502929 (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/imx8m')
0 files changed, 0 insertions, 0 deletions