[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190128093622.18620-1-bbrezillon@kernel.org>
Date: Mon, 28 Jan 2019 10:36:22 +0100
From: Boris Brezillon <bbrezillon@...nel.org>
To: YueHaibing <yuehaibing@...wei.com>, robert.jarzmik@...e.fr,
dwmw2@...radead.org, computersforpeace@...il.com,
bbrezillon@...nel.org, marek.vasut@...il.com, richard@....at
Cc: linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [v4,-next] mtd: docg3: fix a possible memory leak of mtd->name
On Fri, 2019-01-25 at 02:12:42 UTC, YueHaibing wrote:
> In case DOC_CHIPID_G3, mtd->name is not freed in err handling path,
> which is alloced by kasprintf(). Fix this by using devm_kasprintf().
>
> Fixes: ae9d4934b2d7 ("mtd: docg3: add multiple floor support")
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Applied to http://git.infradead.org/linux-mtd.git mtd/next, thanks.
Boris
Powered by blists - more mailing lists