From: Scott Wood Date: Thu, 22 Aug 2013 17:46:25 -0500 Subject: [U-Boot] [U-Boot, 1/2] cmd_nand: fix a memory leak in nand_dump function In-Reply-To: <1373531233-31976-2-git-send-email-yamada.m@jp.panasonic.com> References: <1373531233-31976-2-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20130822224625.GA6755@home.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > > --- > common/cmd_nand.c | 23 ++++++++++++++++------- > 1 file changed, 16 insertions(+), 7 deletions(-) Applied 1/2 and 2/2 to u-boot-nand-flash -Scott