mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 23:37:01 +00:00
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>
This commit is contained in:
parent
9dd599a7a4
commit
fc11dc112d
1 changed files with 0 additions and 2 deletions
|
@ -653,8 +653,6 @@ static int write_fcb(struct boot_config *boot_cfg, struct fcb_block *fcb)
|
|||
off += g_boot_search_stride;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
fcb_raw_page_err:
|
||||
kfree(fcb_raw_page);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue