[U-Boot] [U-Boot, 1/2] cmd_nand: fix a memory leak in nand_dump function
Scott Wood
scottwood at freescale.com
Fri Aug 23 00:46:25 CEST 2013
On Thu, Jul 11, 2013 at 05:27:12PM +0900, Masahiro Yamada wrote:
> If datbuf = memalign(ARCH_DMA_MINALIGN, nand->writesize);
> succeeds and
> oobbuf = memalign(ARCH_DMA_MINALIGN, nand->oobsize);
> fails, nand_dump function should free databuf.
>
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
>
> ---
> common/cmd_nand.c | 23 ++++++++++++++++-------
> 1 file changed, 16 insertions(+), 7 deletions(-)
Applied 1/2 and 2/2 to u-boot-nand-flash
-Scott
More information about the U-Boot
mailing list