[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190826125947.15176-1-miquel.raynal@bootlin.com>
Date: Mon, 26 Aug 2019 14:59:47 +0200
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Wenwen Wang <wenwen@...uga.edu>
Cc: Miquel Raynal <miquel.raynal@...tlin.com>,
Kate Stewart <kstewart@...uxfoundation.org>,
Vignesh Raghavendra <vigneshr@...com>,
Boris Brezillon <bbrezillon@...nel.org>,
Richard Weinberger <richard@....at>,
Randy Dunlap <rdunlap@...radead.org>,
open list <linux-kernel@...r.kernel.org>,
Frieder Schrempf <frieder.schrempf@...tron.de>,
Marek Vasut <marek.vasut@...il.com>,
"open list:NAND FLASH SUBSYSTEM" <linux-mtd@...ts.infradead.org>,
Thomas Gleixner <tglx@...utronix.de>,
Brian Norris <computersforpeace@...il.com>,
David Woodhouse <dwmw2@...radead.org>
Subject: Re: [PATCH v2] mtd: rawnand: Fix a memory leak bug
On Mon, 2019-08-19 at 02:46:04 UTC, Wenwen Wang wrote:
> In nand_scan_bbt(), a temporary buffer 'buf' is allocated through
> vmalloc(). However, if check_create() fails, 'buf' is not deallocated,
> leading to a memory leak bug. To fix this issue, free 'buf' before
> returning the error.
>
> Signed-off-by: Wenwen Wang <wenwen@...uga.edu>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
Powered by blists - more mailing lists